Import Fairphone FP4 SystemUI overlay from LineageOS

This commit is contained in:
Peter Cai 2022-11-07 22:40:37 -05:00
parent c12e8cd516
commit f0663e63d1
4 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-fairphone-fp4-systemui
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)

View File

@ -0,0 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="me.phh.treble.overlay.fairphone.fp4.systemui" android:versionCode="1" android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui" android:requiredSystemPropertyName="ro.vendor.build.fingerprint" android:requiredSystemPropertyValue="+Fairphone/FP4*" android:priority="1872" android:isStatic="true" />
</manifest>

View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2019, 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>
<!-- the padding on the top of the statusbar (usually 0) -->
<dimen name="status_bar_padding_top">16px</dimen>
<!-- Height of the status bar header bar when on Keyguard -->
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height</dimen>
<dimen name="rounded_corner_content_padding">44px</dimen>
<!-- Location on the screen of the center of the physical power button. -->
<dimen name="physical_power_button_center_screen_location_y">940px</dimen>
<!-- Location on the screen of the center of the fingerprint sensor. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>
<!-- Location on the screen of the center of the fingerprint sensor. -->
<dimen name="physical_fingerprint_sensor_center_screen_location_y">940px</dimen>
</resources>

View File

@ -19,6 +19,7 @@ PRODUCT_PACKAGES += \
treble-overlay-essential-ph_1 \
treble-overlay-fairphone-fp3 \
treble-overlay-fairphone-fp4 \
treble-overlay-fairphone-fp4-systemui \
treble-overlay-gestures \
treble-overlay-google-sunfish \
treble-overlay-highpriomisc \