Add resources for OnePlus Nord 2
For AOD to work, disable vendor overlays: `setprop persist.sys.phh.no_vendor_overlay true` Change-Id: I3909ce09bfd9eb1f4c2b3612b25ceb0178ca8562
This commit is contained in:
parent
a04b65d2da
commit
c2c286fc1d
8
OnePlus/N2-SystemUI/Android.mk
Executable file
8
OnePlus/N2-SystemUI/Android.mk
Executable file
|
@ -0,0 +1,8 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_PACKAGE_NAME := treble-overlay-oneplus-n2-systemui
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
include $(BUILD_PACKAGE)
|
10
OnePlus/N2-SystemUI/AndroidManifest.xml
Executable file
10
OnePlus/N2-SystemUI/AndroidManifest.xml
Executable file
|
@ -0,0 +1,10 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.oneplus.n2.systemui"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="com.android.systemui"
|
||||
android:requiredSystemPropertyName="ro.boot.prjname"
|
||||
android:requiredSystemPropertyValue="+(20827|20831)"
|
||||
android:priority="2083"
|
||||
android:isStatic="true" />
|
||||
</manifest>
|
4
OnePlus/N2-SystemUI/res/values-land/config.xml
Executable file
4
OnePlus/N2-SystemUI/res/values-land/config.xml
Executable file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_header_height_keyguard">28dp</dimen>
|
||||
</resources>
|
4
OnePlus/N2-SystemUI/res/values-v31/config.xml
Executable file
4
OnePlus/N2-SystemUI/res/values-v31/config.xml
Executable file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="physical_power_button_center_screen_location_y">825px</dimen>
|
||||
</resources>
|
8
OnePlus/N2-SystemUI/res/values/config.xml
Executable file
8
OnePlus/N2-SystemUI/res/values/config.xml
Executable file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_padding_start">25px</dimen>
|
||||
<dimen name="status_bar_padding_end">45px</dimen>
|
||||
<dimen name="status_bar_header_height_keyguard">139px</dimen>
|
||||
<dimen name="keyguard_carrier_text_margin">@dimen/status_bar_padding_start</dimen>
|
||||
<dimen name="system_icons_keyguard_padding_end">@dimen/status_bar_padding_end</dimen>
|
||||
</resources>
|
8
OnePlus/N2/Android.mk
Executable file
8
OnePlus/N2/Android.mk
Executable file
|
@ -0,0 +1,8 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_PACKAGE_NAME := treble-overlay-oneplus-n2
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
include $(BUILD_PACKAGE)
|
10
OnePlus/N2/AndroidManifest.xml
Executable file
10
OnePlus/N2/AndroidManifest.xml
Executable file
|
@ -0,0 +1,10 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.oneplus.n2"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="android"
|
||||
android:requiredSystemPropertyName="ro.boot.prjname"
|
||||
android:requiredSystemPropertyValue="+(20827|20831)"
|
||||
android:priority="2083"
|
||||
android:isStatic="true" />
|
||||
</manifest>
|
4
OnePlus/N2/res/values-land/config.xml
Executable file
4
OnePlus/N2/res/values-land/config.xml
Executable file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_landscape</dimen>
|
||||
</resources>
|
20
OnePlus/N2/res/values/config.xml
Executable file
20
OnePlus/N2/res/values/config.xml
Executable file
|
@ -0,0 +1,20 @@
|
|||
<?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>
|
||||
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
|
||||
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
|
||||
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
|
||||
<bool name="config_enableBurnInProtection">true</bool>
|
||||
|
||||
<dimen name="status_bar_height_portrait">139px</dimen>
|
||||
<dimen name="status_bar_height_landscape">28dp</dimen>
|
||||
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_portrait</dimen>
|
||||
|
||||
<integer name="config_screenBrightnessDoze">2</integer>
|
||||
<integer name="config_screenBrightnessSettingMinimum">1</integer>
|
||||
|
||||
<string name="config_mainBuiltInDisplayCutout">M -540,0 L -540,100 L -401,100 L -401,0 Z</string>
|
||||
<string name="config_mainBuiltInDisplayCutoutRectApproximation">M -540,0 L -540,100 L -401,100 L -401,0 Z</string>
|
||||
</resources>
|
|
@ -96,6 +96,8 @@ PRODUCT_PACKAGES += \
|
|||
treble-overlay-nokia-pnx-8.1-x7-systemui \
|
||||
treble-overlay-nubia-redmagic3s \
|
||||
treble-overlay-nubia-z18mini \
|
||||
treble-overlay-oneplus-n2 \
|
||||
treble-overlay-oneplus-n2-systemui \
|
||||
treble-overlay-oneplus-n200 \
|
||||
treble-overlay-oneplus-n200-systemui \
|
||||
treble-overlay-oneplus-op10pro \
|
||||
|
|
Loading…
Reference in a new issue