Skip to content

Commit

Permalink
Add resources for Xiaomi Civi 4 Pro (chenfeng)
Browse files Browse the repository at this point in the history
Change-Id: I9f331cd08afaacba083e44a34ec1fe743f8fef00
  • Loading branch information
AndyCGYan committed Jun 30, 2024
1 parent 24b4042 commit 2bc9412
Show file tree
Hide file tree
Showing 10 changed files with 86 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Xiaomi/Civi4Pro-SystemUI/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-civi4pro-systemui
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)
10 changes: 10 additions & 0 deletions Xiaomi/Civi4Pro-SystemUI/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.xiaomi.civi4pro.systemui"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="com.android.systemui"
android:requiredSystemPropertyName="ro.boot.hardware.sku"
android:requiredSystemPropertyValue="chenfeng"
android:priority="1244"
android:isStatic="true" />
</manifest>
6 changes: 6 additions & 0 deletions Xiaomi/Civi4Pro-SystemUI/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_header_height_keyguard">28dp</dimen>
<dimen name="large_screen_shade_header_height">28dp</dimen>
<dimen name="large_screen_shade_header_min_height">28dp</dimen>
</resources>
4 changes: 4 additions & 0 deletions Xiaomi/Civi4Pro-SystemUI/res/values-v31/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="physical_power_button_center_screen_location_y">1266px</dimen>
</resources>
10 changes: 10 additions & 0 deletions Xiaomi/Civi4Pro-SystemUI/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_padding_start">57px</dimen>
<dimen name="status_bar_padding_end">57px</dimen>
<dimen name="status_bar_header_height_keyguard">172px</dimen>
<dimen name="keyguard_carrier_text_margin">57px</dimen>
<dimen name="system_icons_keyguard_padding_end">57px</dimen>
<dimen name="large_screen_shade_header_height">172px</dimen>
<dimen name="large_screen_shade_header_min_height">172px</dimen>
</resources>
8 changes: 8 additions & 0 deletions Xiaomi/Civi4Pro/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_PACKAGE_NAME := treble-overlay-xiaomi-civi4pro
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)
10 changes: 10 additions & 0 deletions Xiaomi/Civi4Pro/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.xiaomi.civi4pro"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.boot.hardware.sku"
android:requiredSystemPropertyValue="chenfeng"
android:priority="1244"
android:isStatic="true" />
</manifest>
6 changes: 6 additions & 0 deletions Xiaomi/Civi4Pro/res/values-land/config.xml
Original file line number Diff line number Diff line change
@@ -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>
22 changes: 22 additions & 0 deletions Xiaomi/Civi4Pro/res/values/config.xml
Original file line number Diff line number Diff line change
@@ -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">172px</dimen>
<dimen name="status_bar_height">172px</dimen>
<dimen name="status_bar_height_portrait">172px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>
<dimen name="quick_qs_offset_height">172px</dimen>

<integer name="config_screenBrightnessDoze">4</integer>
<integer name="config_screenBrightnessSettingMinimum">1</integer>

<string name="config_mainBuiltInDisplayCutout">M -138,0 L -138,129 L 138,129 L 138,0 Z</string>
<string name="config_mainBuiltInDisplayCutoutRectApproximation">M -138,0 L -138,129 L 138,129 L 138,0 Z</string>
</resources>
2 changes: 2 additions & 0 deletions overlay.mk
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ PRODUCT_PACKAGES += \
treble-overlay-wifi5g \
treble-overlay-xiaomi-civi \
treble-overlay-xiaomi-civi-systemui \
treble-overlay-xiaomi-civi4pro \
treble-overlay-xiaomi-civi4pro-systemui \
treble-overlay-xiaomi-mi11lite5g \
treble-overlay-xiaomi-mi11lite5g-systemui \
treble-overlay-xiaomi-mi11tpro \
Expand Down

0 comments on commit 2bc9412

Please sign in to comment.