Add resources for OnePlus Nord

Change-Id: I268379215305a092218cfb503918a8cc6d41ba3f
This commit is contained in:
Andy CrossGate Yan 2022-09-02 16:03:47 +08:00
parent 09824e8d7b
commit 861aae16d5
9 changed files with 73 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-oneplus-nord-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,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.oneplus.nord.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.product.vendor.device"
android:requiredSystemPropertyValue="Nord"
android:priority="2080"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_header_height_keyguard">28dp</dimen>
</resources>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_padding_start">30px</dimen>
<dimen name="status_bar_padding_end">50px</dimen>
<dimen name="status_bar_header_height_keyguard">139px</dimen>
<dimen name="keyguard_carrier_text_margin">30px</dimen>
<dimen name="system_icons_keyguard_padding_end">50px</dimen>
</resources>

8
OnePlus/Nord/Android.mk Executable file
View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-oneplus-nord
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,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.oneplus.nord"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.product.vendor.device"
android:requiredSystemPropertyValue="Nord"
android:priority="2080"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height_default">28dp</dimen>
<dimen name="status_bar_height">28dp</dimen>
<dimen name="quick_qs_offset_height">28dp</dimen>
</resources>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_showNavigationBar">true</bool>
<bool name="config_fillMainBuiltInDisplayCutout">false</bool>
<dimen name="status_bar_height_default">139px</dimen>
<dimen name="status_bar_height">139px</dimen>
<dimen name="status_bar_height_portrait">139px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>
<dimen name="quick_qs_offset_height">139px</dimen>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<string name="config_mainBuiltInDisplayCutout">M -540,0 L -540,108 L -283,108 L -283,0 Z</string>
<string name="config_mainBuiltInDisplayCutoutRectApproximation">M -540,0 L -540,108 L -283,108 L -283,0 Z</string>
</resources>

View file

@ -117,6 +117,8 @@ PRODUCT_PACKAGES += \
treble-overlay-oneplus-n20-systemui \
treble-overlay-oneplus-n200 \
treble-overlay-oneplus-n200-systemui \
treble-overlay-oneplus-nord \
treble-overlay-oneplus-nord-systemui \
treble-overlay-oneplus-nordce \
treble-overlay-oneplus-nordce-systemui \
treble-overlay-oneplus-op10pro \