diff options
| author | Bruno Martins <bgcngm@gmail.com> | 2022-02-12 01:40:30 +0000 |
|---|---|---|
| committer | Bruno Martins <bgcngm@gmail.com> | 2022-02-15 15:35:12 +0000 |
| commit | 622a52e27de336b155a7affcefece71eb5bdfec3 (patch) | |
| tree | 8ea34c136007314e7a7350ee08bc5cc7dcd05ed7 | |
| parent | 31b4f71f57ecf8f8e8f4ec85382fee99d454d359 (diff) | |
pro1: overlay: Set physical power button and fps location
This sets config_is_powerbutton_fps, even though the device doesn't
have fps embedded in the power button. It makes frameworks report that
fingerprint sensor is located on the side of the device, which
can be observed when enrolling a fingerprint for the first time.
Change-Id: Ifa079488db642c8a470e40cb585c08e9c85d7cf4
| -rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 3 | ||||
| -rw-r--r-- | overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 62ead35..f7447c2 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -554,6 +554,9 @@ <dimen name="status_bar_height_landscape">32.0dp</dimen> + <!-- Indicates whether device has a power button fingerprint sensor. --> + <bool name="config_is_powerbutton_fps" translatable="false">true</bool> + <!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService when registering authenticators with BiometricService. Format must be ID:Modality:Strength, where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java, diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml index 6a321d8..0640c79 100644 --- a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml +++ b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml @@ -21,4 +21,14 @@ <!-- for 10dp of padding at 3px/dp with default density --> <dimen name="rounded_corner_content_padding">30px</dimen> + <!-- Location on the screen of the center of the physical power button. This is a reasonable + default that should be overridden by device-specific overlays. --> + <dimen name="physical_power_button_center_screen_location_y">1035px</dimen> + + <!-- Location on the screen of the center of the fingerprint sensor. For devices with under + display fingerprint sensors, this directly corresponds to the fingerprint sensor's location. + For devices with sensors on the back of the device, this corresponds to the location on the + screen directly in front of the sensor. --> + <dimen name="physical_fingerprint_sensor_center_screen_location_y">1395px</dimen> + </resources> |
