Merge pull request #447 from crazo7924/pie

add for Realme 8 5G / Narzo 30 5G
This commit is contained in:
Pierre-Hugues HUSSON 2022-05-01 13:19:05 +02:00 committed by GitHub
commit 4427a0b0ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 220 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-realme-re513cl1
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,9 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="me.phh.treble.overlay.realme.re513cl1">
<overlay
android:isStatic="true"
android:priority="261"
android:targetPackage="android"
android:requiredSystemPropertyName="ro.boot.prjname"
android:requiredSystemPropertyValue="(132863|133013)" />
</manifest>

View File

@ -0,0 +1,5 @@
<?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,102 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<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>
<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>
<string-array name="config_defaultPinnerServiceFiles">
<item>/system/framework/arm64/boot-framework.oat</item>
<item>/system/framework/arm/boot-framework.oat</item>
<item>/apex/com.android.art/javalib/arm64/boot-core-libart.oat</item>
<item>/apex/com.android.art/javalib/arm/boot-core-libart.oat</item>
<item>/apex/com.android.art/javalib/arm64/boot-okhttp.oat</item>
<item>/apex/com.android.art/javalib/arm/boot-okhttp.oat</item>
<item>/apex/com.android.art/javalib/arm64/boot.vdex</item>
<item>/apex/com.android.art/javalib/arm/boot.vdex</item>
<item>/apex/com.android.art/javalib/arm64/boot-core-libart.vdex</item>
<item>/apex/com.android.art/javalib/arm/boot-core-libart.vdex</item>
<item>/apex/com.android.art/javalib/arm64/boot-core-libart.art</item>
<item>/apex/com.android.art/javalib/arm/boot-core-libart.art</item>
<item>/system/framework/framework-res.apk</item>
<item>/system/lib64/libhwui.so</item>
<item>/system/lib/libhwui.so</item>
<item>/system/framework/boot-framework.vdex</item>
<item>/system/framework/oat/arm64/services.vdex</item>
<item>/system/framework/oat/arm64/services.odex</item>
<item>/apex/com.android.art/javalib/arm64/boot.oat</item>
<item>/apex/com.android.art/javalib/arm/boot.oat</item>
<item>/system/framework/telephony-common.jar</item>
<item>/system/framework/arm64/boot-telephony-common.art</item>
<item>/system/lib64/libsurfaceflinger.so</item>
<item>/apex/com.android.art/javalib/core-oj.jar</item>
<item>/apex/com.android.art/javalib/core-libart.jar</item>
</string-array>
<string-array name="config_tether_bluetooth_regexs">
<item>bt-pan</item>
<item>bt-dun</item>
</string-array>
<string-array name="config_tether_usb_regexs">
<item>usb\\d</item>
<item>rndis\\d</item>
</string-array>
<string-array name="config_tether_wifi_regexs">
<item>softap\\d</item>
<item>ap\\d</item>
</string-array>
<string-array name="networkAttributes">
<item>wifi,1,1,1,-1,true</item>
<item>mobile,0,0,0,-1,true</item>
<item>mobile_mms,2,0,2,60000,true</item>
<item>mobile_supl,3,0,2,60000,true</item>
<item>mobile_dun,4,0,2,60000,true</item>
<item>mobile_hipri,5,0,3,60000,true</item>
<item>ethernet,9,9,9,-1,true</item>
<item>mobile_fota,10,0,2,60000,true</item>
<item>mobile_ims,11,0,-1,-1,true</item>
<item>mobile_cbs,12,0,2,60000,true</item>
<item>wifi_p2p,13,1,0,-1,true</item>
<item>mobile_ia,14,0,2,-1,true</item>
<item>mobile_emergency,15,0,2,-1,true</item>
<item>mobile_mcx,1001,0,3,60000,true</item>
<item>mobile_xcap,1002,0,3,60000,true</item>
<item>mobile_rcs,2001,0,3,60000,true</item>
<item>mobile_bip,2002,0,3,60000,true</item>
<item>mobile_vsim,2003,0,-1,60000,true</item>
<item>bluetooth,7,7,2,-1,true</item>
</string-array>
</resources>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- WiFiResOverlay -->
<bool name="config_wifi_background_scan_support">true</bool>
<bool name="config_wifi_connected_mac_randomization_supported">true</bool>
<bool name="config_wifi_fast_bss_transition_enabled">true</bool>
<bool name="config_wifi_p2p_mac_randomization_supported">true</bool>
<!-- FrameworkResOverlay -->
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
<bool name="config_device_volte_available">true</bool>
<!-- Product frameworks auto-gen rro -->
<bool name="config_device_vt_available">true</bool>
<bool name="config_device_wfc_ims_available">true</bool>
<bool name="config_dynamic_bind_ims">true</bool>
<bool name="config_hotswapCapable">true</bool>
<bool name="config_setColorTransformAccelerated">true</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">false</bool>
<bool name="config_useDevInputEventForAudioJack">true</bool>
<bool name="skip_restoring_network_selection">true</bool>
</resources>

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Height of the status bar in landscape -->
<dimen name="status_bar_height_landscape">110.0px</dimen>
<!-- Height of the status bar in portrait -->
<dimen name="status_bar_height_portrait">110.0px</dimen>
<!-- Height of area above QQS where battery/time go. -->
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_portrait</dimen>
<!-- Whether the display cutout region of the main built-in display should be forced to
black in software (to avoid aliasing or emulate a cutout that is not physically existent).
-->
<bool name="config_fillMainBuiltInDisplayCutout">false</bool>
<!-- The bounding path of the cutout region of the main built-in display. -->
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -544,0 L -544,110 L -388,110 L -388,0 Z</string>
</resources>

View File

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="battery.capacity">4000</item>
<array name="cpu.clusters.cores">
<value>4</value>
<value>4</value>
</array>
<item name="cpu.suspend">5</item>
<item name="cpu.idle">1.11</item>
<item name="cpu.active">2.55</item>
<item name="cpu.cluster_power.cluster0">2.11</item>
<item name="cpu.cluster_power.cluster1">2.22</item>
<array name="cpu.core_speeds.cluster0">
<value>300000</value>
<value>1000000</value>
<value>2000000</value>
</array>
<array name="cpu.core_speeds.cluster1">
<value>300000</value>
<value>1000000</value>
<value>2500000</value>
<value>3000000</value>
</array>
<array name="cpu.core_power.cluster0">
<value>10</value>
<value>20</value>
<value>30</value>
</array>
<array name="cpu.core_power.cluster1">
<value>25</value>
<value>35</value>
<value>50</value>
<value>60</value>
</array>
<item name="ambient.on">0.5</item>
<item name="screen.on">100</item>
<item name="screen.full">800</item>
<item name="camera.flashlight">500</item>
<item name="camera.avg">600</item>
<item name="audio">100.0</item>
<item name="video">150.0</item>
<item name="gps.on">10</item>
<item name="radio.active">60</item>
<item name="radio.scanning">3</item>
<array name="radio.on">
<value>6</value>
<value>5</value>
<value>4</value>
<value>3</value>
<value>3</value>
</array>
</device>

View File

@ -127,6 +127,7 @@ PRODUCT_PACKAGES += \
treble-overlay-realme-gtneo3-systemui \
treble-overlay-realme-narzo10a \
treble-overlay-realme-q3 \
treble-overlay-realme-re513cl1 \
treble-overlay-realme-rmx2117 \
treble-overlay-realme-rmx2117-systemui \
treble-overlay-realme-rmx3366 \