Add resources for Realme GT2 Pro (RMX3300/1)
Cloned from OnePlus 10 Pro
This commit is contained in:
parent
861aae16d5
commit
478000f7de
8
Realme/GT2Pro-SystemUI/Android.mk
Normal file
8
Realme/GT2Pro-SystemUI/Android.mk
Normal file
|
@ -0,0 +1,8 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_PACKAGE_NAME := treble-overlay-realme-gt2pro-systemui
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
include $(BUILD_PACKAGE)
|
10
Realme/GT2Pro-SystemUI/AndroidManifest.xml
Normal file
10
Realme/GT2Pro-SystemUI/AndroidManifest.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.realme.gt2pro.systemui"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="com.android.systemui"
|
||||
android:requiredSystemPropertyName="ro.boot.prjname"
|
||||
android:requiredSystemPropertyValue="+(21631|216AC)"
|
||||
android:priority="2163"
|
||||
android:isStatic="true" />
|
||||
</manifest>
|
4
Realme/GT2Pro-SystemUI/res/values-land/config.xml
Normal file
4
Realme/GT2Pro-SystemUI/res/values-land/config.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_header_height_keyguard">28dp</dimen>
|
||||
</resources>
|
4
Realme/GT2Pro-SystemUI/res/values-xxhdpi-v31/config.xml
Normal file
4
Realme/GT2Pro-SystemUI/res/values-xxhdpi-v31/config.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="physical_power_button_center_screen_location_y">960px</dimen>
|
||||
</resources>
|
8
Realme/GT2Pro-SystemUI/res/values-xxhdpi/config.xml
Normal file
8
Realme/GT2Pro-SystemUI/res/values-xxhdpi/config.xml
Normal 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">60px</dimen>
|
||||
<dimen name="status_bar_header_height_keyguard">120px</dimen>
|
||||
<dimen name="keyguard_carrier_text_margin">25px</dimen>
|
||||
<dimen name="system_icons_keyguard_padding_end">60px</dimen>
|
||||
</resources>
|
4
Realme/GT2Pro-SystemUI/res/values-xxxhdpi-v31/config.xml
Normal file
4
Realme/GT2Pro-SystemUI/res/values-xxxhdpi-v31/config.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="physical_power_button_center_screen_location_y">1280px</dimen>
|
||||
</resources>
|
8
Realme/GT2Pro-SystemUI/res/values-xxxhdpi/config.xml
Normal file
8
Realme/GT2Pro-SystemUI/res/values-xxxhdpi/config.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_padding_start">33px</dimen>
|
||||
<dimen name="status_bar_padding_end">80px</dimen>
|
||||
<dimen name="status_bar_header_height_keyguard">160px</dimen>
|
||||
<dimen name="keyguard_carrier_text_margin">33px</dimen>
|
||||
<dimen name="system_icons_keyguard_padding_end">80px</dimen>
|
||||
</resources>
|
8
Realme/GT2Pro/Android.mk
Normal file
8
Realme/GT2Pro/Android.mk
Normal file
|
@ -0,0 +1,8 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_PACKAGE_NAME := treble-overlay-realme-gt2pro
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
include $(BUILD_PACKAGE)
|
10
Realme/GT2Pro/AndroidManifest.xml
Normal file
10
Realme/GT2Pro/AndroidManifest.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.realme.gt2pro"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="android"
|
||||
android:requiredSystemPropertyName="ro.boot.prjname"
|
||||
android:requiredSystemPropertyValue="+(21631|216AC)"
|
||||
android:priority="2163"
|
||||
android:isStatic="true" />
|
||||
</manifest>
|
6
Realme/GT2Pro/res/values-land/config.xml
Normal file
6
Realme/GT2Pro/res/values-land/config.xml
Normal 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>
|
5
Realme/GT2Pro/res/values-sw320dp/dimens.xml
Normal file
5
Realme/GT2Pro/res/values-sw320dp/dimens.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_height_portrait">160.000001px</dimen>
|
||||
<dimen name="status_bar_height_landscape">28.000001dp</dimen>
|
||||
</resources>
|
5
Realme/GT2Pro/res/values-sw338dp/dimens.xml
Normal file
5
Realme/GT2Pro/res/values-sw338dp/dimens.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_height_portrait">160.000002px</dimen>
|
||||
<dimen name="status_bar_height_landscape">28.000002dp</dimen>
|
||||
</resources>
|
5
Realme/GT2Pro/res/values-sw360dp/dimens.xml
Normal file
5
Realme/GT2Pro/res/values-sw360dp/dimens.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_height_portrait">160.000003px</dimen>
|
||||
<dimen name="status_bar_height_landscape">28.000003dp</dimen>
|
||||
</resources>
|
5
Realme/GT2Pro/res/values-sw411dp/dimens.xml
Normal file
5
Realme/GT2Pro/res/values-sw411dp/dimens.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_height_portrait">160.000004px</dimen>
|
||||
<dimen name="status_bar_height_landscape">28.000004dp</dimen>
|
||||
</resources>
|
5
Realme/GT2Pro/res/values-sw454dp/dimens.xml
Normal file
5
Realme/GT2Pro/res/values-sw454dp/dimens.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_height_portrait">160.000005px</dimen>
|
||||
<dimen name="status_bar_height_landscape">28.000005dp</dimen>
|
||||
</resources>
|
5
Realme/GT2Pro/res/values-sw460dp/dimens.xml
Normal file
5
Realme/GT2Pro/res/values-sw460dp/dimens.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_height_portrait">160.000006px</dimen>
|
||||
<dimen name="status_bar_height_landscape">28.000006dp</dimen>
|
||||
</resources>
|
11
Realme/GT2Pro/res/values-xxhdpi/config.xml
Normal file
11
Realme/GT2Pro/res/values-xxhdpi/config.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_height_default">120px</dimen>
|
||||
<dimen name="status_bar_height">120px</dimen>
|
||||
<dimen name="status_bar_height_portrait">120px</dimen>
|
||||
<dimen name="status_bar_height_landscape">28dp</dimen>
|
||||
<dimen name="quick_qs_offset_height">120px</dimen>
|
||||
|
||||
<string name="config_mainBuiltInDisplayCutout">M -540,0 L -540,93 L -394,93 L -394,0 Z</string>
|
||||
<string name="config_mainBuiltInDisplayCutoutRectApproximation">M -540,0 L -540,93 L -394,93 L -394,0 Z</string>
|
||||
</resources>
|
11
Realme/GT2Pro/res/values-xxxhdpi/config.xml
Normal file
11
Realme/GT2Pro/res/values-xxxhdpi/config.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="status_bar_height_default">160px</dimen>
|
||||
<dimen name="status_bar_height">160px</dimen>
|
||||
<dimen name="status_bar_height_portrait">160px</dimen>
|
||||
<dimen name="status_bar_height_landscape">28dp</dimen>
|
||||
<dimen name="quick_qs_offset_height">160px</dimen>
|
||||
|
||||
<string name="config_mainBuiltInDisplayCutout">M -720,0 L -720,124 L -525,124 L -525,0 Z</string>
|
||||
<string name="config_mainBuiltInDisplayCutoutRectApproximation">M -720,0 L -720,124 L -525,124 L -525,0 Z</string>
|
||||
</resources>
|
13
Realme/GT2Pro/res/values/config.xml
Normal file
13
Realme/GT2Pro/res/values/config.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?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>
|
||||
|
||||
<integer name="config_screenBrightnessDoze">3</integer>
|
||||
<integer name="config_screenBrightnessSettingMinimum">1</integer>
|
||||
</resources>
|
|
@ -146,6 +146,8 @@ PRODUCT_PACKAGES += \
|
|||
treble-overlay-realme-8-5g-systemui \
|
||||
treble-overlay-realme-c2 \
|
||||
treble-overlay-realme-c3 \
|
||||
treble-overlay-realme-gt2pro \
|
||||
treble-overlay-realme-gt2pro-systemui \
|
||||
treble-overlay-realme-gtmaster \
|
||||
treble-overlay-realme-gtmaster-systemui \
|
||||
treble-overlay-realme-gtmasterexplorer \
|
||||
|
|
Loading…
Reference in a new issue