Add resources for OPPO Reno6 (PEQM00)

Change-Id: I3889b228a4e8d089b1b616690869bf85b4864c47
This commit is contained in:
Andy CrossGate Yan 2021-05-27 16:51:19 +08:00
parent 12a035110e
commit 837d949a8e
8 changed files with 101 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-oppo-peqm00-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.oppo.peqm00.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.vendor.product.oem"
android:requiredSystemPropertyValue="PEQM00"
android:priority="1812"
android:isStatic="true" />
</manifest>

View 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">@*android:dimen/status_bar_height</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
OPPO/PEQM00/Android.mk Normal file
View file

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-oppo-peqm00
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.oppo.peqm00"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.product.oem"
android:requiredSystemPropertyValue="PEQM00"
android:priority="1811"
android:isStatic="true" />
</manifest>

View 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>

View file

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="config_showNavigationBar">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-array name="config_autoBrightnessLevels">
<item>128</item>
<item>256</item>
<item>384</item>
<item>512</item>
<item>640</item>
<item>768</item>
<item>896</item>
<item>1024</item>
<item>2048</item>
<item>4096</item>
<item>6144</item>
<item>8192</item>
<item>10240</item>
<item>12288</item>
<item>14336</item>
<item>16384</item>
<item>18432</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>8</item>
<item>64</item>
<item>98</item>
<item>104</item>
<item>110</item>
<item>116</item>
<item>122</item>
<item>128</item>
<item>134</item>
<item>182</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
</integer-array>
<string name="config_mainBuiltInDisplayCutout">M -540,0 L -540,106 L -401,106 L -401,0 Z</string>
</resources>

View file

@ -85,6 +85,8 @@ PRODUCT_PACKAGES += \
treble-overlay-oneplus-op6 \
treble-overlay-oneplus-op6t \
treble-overlay-oneplus-op6t-systemui \
treble-overlay-oppo-peqm00 \
treble-overlay-oppo-peqm00-systemui \
treble-overlay-oukitel-wp8pro \
treble-overlay-razer-cheryl \
treble-overlay-realme-6 \