8000 Tags · xjl12/android_device_xiaomi_atom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: xjl12/android_device_xiaomi_atom

Tags

4.0-free

Toggle 4.0-free's commit message

Verified

This commit was signed with the committer’s verified signature.
xjl12 乐享佳成
delete InCallService

3.1

Toggle 3.1's commit message
Update SEPolicy

3.0

Toggle 3.0's commit message
Udfps framework patch modified by @xjl12!

This may be the best solution for Xiaomi Mediatek FOD devices.

There are several points in the UDFPS function:

1. Modify system HIDL interface to support onShowUdfpsOverlay() and
   onHideUdfpsOverlay() binder call.
2. Let system fingerprint overlay service(SensorOverlays) call HIDL
   interface when UDFPS overlay begin to show or disappear.
3. HAL daemon implements onShowUdfpsOverlay() to notify Xiaomi
   TouchFeatureService be ready for fingerprint authentication.
4. Modify SystemUI UdfpsController to darken other areas of the
   screen when UDFPS overlay is showing.
5. Implements daemon onFingerDown() and onFingerUp() to call Xiaomi
   Fingerprint Service.

The above five points are the result of previous work, and the
following is my refinement of this issue:

1. Modify SystemUI UdfpsView onAttachedToWindow() and onDetachedFromWindow()
   callback to put authentication begin or end infomation into Settings.System.
2. On XiaomiParts Application, we register SCREEN_ON and SCREEN_OFF broadcast.
   Then, we could check Settings.System UDFPS flag set by UdfpsView when
   received SCREEN_ON event. If UDFPS authenticationis in progress, we must turn HBM on immediately.
3. In SystemUI UdfpsView, we add onWindowVisibilityChanged() callback to
   put VISIBILITY info into Settings.System use key "udfps_need_hbm".
4. In XiaomiParts DozeService, we create a ContentObserver to monitor
   Settings.System key "udfps_need_hbm" changes. When it from ON turn into OFF,
   we should disable HBM immediately. However, when it from OFF to ON, we
   start a thread to enable HBM later. What's more, we must ensure only
   ONE Thread running in the background.
5. Change SystemUI UdfpsControllerOverlay to rise UdfpsOverlay window
   layer above the navigation bar.
6. Modify SystemUI resources to hide Fingerprint background and make
   Fingerprint icon in gray color. This measure is to prevent the
   fingerprint unlock icon from being too bright on the lock screen
   page because we turn HBM on.

All in all, the mainline of my UDFPS solution is turn on HBM when Udfps
overlay begin to show, not onFingerDown(). This is the point to improve
the speed of fingerprint unlocking and bring better experience to users.

2.1

Toggle 2.1's commit message
Fingerprint Hal for MTK FOD in A12 works!

Please modify the Android sources referred in fingerprint/Android_Source_Modified.
Some device may need to modify the maxBrightness value, please notice that.
Tested on Redmi 10X 5G with Fingerprint Unlock, Pay and Screen-off authorization.

@author xjl12

2.0

Toggle 2.0's commit message
Add GMS and Lawnchair & Fix fingerprint error

1.4

Toggle 1.4's commit message
Update system properties and audio configs from MIUI

1.3

Toggle 1.3's commit message
Add specific libsink to fix Video Call problem

1.2

Toggle 1.2's commit message
Release v1.2 Merge fingerprint HAL into system.

1.1

Toggle 1.1's commit message
Release V1.1

	-Using MIUI stable version kernel.
	-Fix engineermode crash.
	-Improve fingerprint HAL.

1.0

Toggle 1.0's commit message
The First Release!

            -Add IMS Support
            -Add DT2W package from Merlin device
            -Fix brightness problems
0