Add resources for Motorola Moto S30 Pro / Edge 30 Fusion (tundra)

Change-Id: Ia98d90bd8057140db6f9004f9c0ee27d9a281c42
This commit is contained in:
Andy CrossGate Yan 2022-10-17 00:34:27 +00:00
parent deb7a29c9c
commit d417830ec4
10 changed files with 85 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-moto-tundra-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.moto.tundra.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.product.vendor.device"
android:requiredSystemPropertyValue="tundra"
android:priority="224"
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,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="physical_power_button_center_screen_location_y">1036px</dimen>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_padding_start">50px</dimen>
<dimen name="status_bar_padding_end">50px</dimen>
<dimen name="status_bar_header_height_keyguard">125px</dimen>
<dimen name="keyguard_carrier_text_margin">50px</dimen>
<dimen name="system_icons_keyguard_padding_end">50px</dimen>
<!-- Moto please no -->
<dimen name="rounded_corner_content_padding">4dp</dimen>
</resources>

8
Moto/tundra/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-moto-tundra
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.moto.tundra"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.product.vendor.device"
android:requiredSystemPropertyValue="tundra"
android:priority="224"
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,22 @@
<?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_default">125px</dimen>
<dimen name="status_bar_height">125px</dimen>
<dimen name="status_bar_height_portrait">125px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>
<dimen name="quick_qs_offset_height">125px</dimen>
<integer name="config_screenBrightnessDoze">36</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<string name="config_mainBuiltInDisplayCutout">M -32.5,0 L -32.5,95 L 32.5,95 L 32.5,0 Z</string>
<string name="config_mainBuiltInDisplayCutoutRectApproximation">M -32.5,0 L -32.5,95 L 32.5,95 L 32.5,0 Z</string>
</resources>

View file

@ -97,6 +97,8 @@ PRODUCT_PACKAGES += \
treble-overlay-moto-razr \
treble-overlay-moto-rhodep \
treble-overlay-moto-rhodep-systemui \
treble-overlay-moto-tundra \
treble-overlay-moto-tundra-systemui \
treble-overlay-mtk-ims \
treble-overlay-nokia-b2n-7plus \
treble-overlay-nokia-ctl-7-1 \