mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-21 21:36:26 -08:00
LG8n: overlay: Set physical power button and fps location
This sets config_is_powerbutton_fps, since the device has 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 Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
parent
15255111b1
commit
3dacf79c32
|
@ -104,4 +104,7 @@
|
|||
|
||||
<!-- Light sensor event rate in milliseconds for automatic brightness control. -->
|
||||
<integer name="config_autoBrightnessLightSensorRate">250</integer>
|
||||
|
||||
<!-- Whether device uses power button fingerprint sensor or not -->
|
||||
<bool name="config_is_powerbutton_fps">true</bool>
|
||||
</resources>
|
||||
|
|
10
overlay/SystemUIOverlayLG8n/Android.bp
Normal file
10
overlay/SystemUIOverlayLG8n/Android.bp
Normal file
|
@ -0,0 +1,10 @@
|
|||
//
|
||||
// Copyright (C) 2023 LineageOS
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
runtime_resource_overlay {
|
||||
name: "SystemUIResTarget",
|
||||
vendor: true
|
||||
}
|
13
overlay/SystemUIOverlayLG8n/AndroidManifest.xml
Normal file
13
overlay/SystemUIOverlayLG8n/AndroidManifest.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2023 The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.android.systemui.pova4pro">
|
||||
|
||||
<overlay
|
||||
android:isStatic="true"
|
||||
android:priority="350"
|
||||
android:targetPackage="com.android.systemui" />
|
||||
</manifest>
|
31
overlay/SystemUIOverlayLG8n/res/values/dimens.xml
Normal file
31
overlay/SystemUIOverlayLG8n/res/values/dimens.xml
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
* Copyright (c) 2006, The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
<!-- 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">1100px</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">1150px</dimen>
|
||||
|
||||
<!-- Location on the screen of the center of the fingerprint sensor -->
|
||||
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>
|
||||
</resources>
|
Loading…
Reference in a new issue