Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add overlay for Poco F4 GT (ingres) #770

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Xiaomi/PocoF4GT/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-pocof4gt
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
LOCAL_PRIVATE_PLATFORM_APIS := true
include $(BUILD_PACKAGE)
11 changes: 11 additions & 0 deletions Xiaomi/PocoF4GT/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.xiaomi.pocof4gt"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.product.vendor.device"
android:requiredSystemPropertyValue="ingres"
android:priority="257"
android:isStatic="true" />
</manifest>

131 changes: 131 additions & 0 deletions Xiaomi/PocoF4GT/res/values/arrays.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer-array name="config_ambientBrighteningThresholds">
<item>100</item>
</integer-array>
<integer-array name="config_ambientDarkeningThresholds">
<item>200</item>
</integer-array>
<array name="config_ambientThresholdLevels" />
<array name="config_autoBrightnessButtonBacklightValues" />
<array name="config_autoBrightnessDisplayValuesNits" />
<array name="config_autoBrightnessLcdBacklightValues" />
<array name="config_autoBrightnessLevels" />
<array name="config_availableColorModes" />
<string-array name="config_biometric_sensors">
<item>0:2:15</item>
</string-array>
<integer-array name="config_defaultNotificationVibePattern">
<item>0</item>
<item>350</item>
<item>250</item>
<item>350</item>
</integer-array>
<string-array name="config_defaultPinnerServiceFiles">
<item>/data/dalvik-cache/arm64/system@[email protected]</item>
<item>/data/dalvik-cache/arm/system@[email protected]</item>
<item>/data/dalvik-cache/arm64/system@[email protected]@classes.dex</item>
<item>/data/dalvik-cache/arm/system@[email protected]@classes.dex</item>
<item>/system/framework/arm64/boot.oat</item>
<item>/system/framework/arm/boot.oat</item>
<item>/system/framework/oat/arm64/services.odex</item>
<item>/system/framework/oat/arm/services.odex</item>
<item>/system/framework/arm64/boot-framework.oat</item>
<item>/system/framework/arm/boot-framework.oat</item>
<item>/system/framework/arm64/boot-core-libart.oat</item>
<item>/system/framework/arm/boot-core-libart.oat</item>
<item>/system/lib64/libRScpp.so</item>
<item>/system/lib64/libRS.so</item>
<item>/system/lib64/libRS_internal.so</item>
<item>/system/lib64/libbcinfo.so</item>
<item>/system/lib64/libRSDriver.so</item>
<item>/system/lib64/libRSCpuRef.so</item>
<item>/system/lib64/libblas.so</item>
</string-array>
<array name="config_ephemeralResolverPackage" />
<integer-array name="config_keyboardTapVibePattern">
<item>40</item>
</integer-array>
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>1</item>
<item>20</item>
<item>21</item>
</integer-array>
<integer-array name="config_lteDbmThresholds">
<item>-140</item>
<item>-140</item>
<item>-125</item>
<item>-112</item>
<item>-102</item>
<item>-44</item>
</integer-array>
<array name="config_minimumBrightnessCurveNits">
<item>0.0</item>
<item>50.0</item>
<item>90.0</item>
</array>
<array name="config_mobile_tcp_buffers" />
<integer-array name="config_notificationFallbackVibePattern">
<item>0</item>
<item>100</item>
<item>150</item>
<item>100</item>
</integer-array>
<integer-array name="config_safeModeEnabledVibePattern">
<item>0</item>
<item>1</item>
<item>20</item>
<item>21</item>
<item>500</item>
<item>600</item>
</integer-array>
<integer-array name="config_screenBrighteningThresholds">
<item>100</item>
</integer-array>
<array name="config_screenBrightnessBacklight" />
<array name="config_screenBrightnessNits" />
<integer-array name="config_screenDarkeningThresholds">
<item>200</item>
</integer-array>
<integer-array name="config_scrollBarrierVibePattern">
<item>0</item>
<item>15</item>
<item>10</item>
<item>10</item>
</integer-array>
<array name="config_tether_bluetooth_regexs" />
<integer-array name="config_tether_upstream_types">
<item>1</item>
<item>0</item>
<item>5</item>
<item>7</item>
</integer-array>
<array name="config_tether_usb_regexs" />
<array name="config_tether_wifi_regexs" />
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>10</item>
<item>20</item>
<item>30</item>
</integer-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,4,300000,true</item>
<item>mobile_supl,3,0,2,300000,true</item>
<item>mobile_dun,4,0,2,300000,true</item>
<item>mobile_hipri,5,0,3,300000,true</item>
<item>mobile_fota,10,0,2,300000,true</item>
<item>mobile_ims,11,0,2,300000,true</item>
<item>mobile_cbs,12,0,2,300000,true</item>
<item>bluetooth,7,7,2,-1,true</item>
<item>ethernet,9,9,4,-1,true</item>
</string-array>
<string-array name="radioAttributes">
<item>1,1</item>
<item>0,1</item>
<item>7,1</item>
<item>9,1</item>
</string-array>
</resources>
46 changes: 46 additions & 0 deletions Xiaomi/PocoF4GT/res/values/bools.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_allowAutoBrightnessWhileDozing">false</bool>
<bool name="config_autoBrightnessResetAmbientLuxAfterWarmUp">true</bool>
<bool name="config_auto_attach_data_on_creation">true</bool>
<bool name="config_automatic_brightness_available">true</bool>
<bool name="config_bluetooth_hfp_inband_ringing_support">false</bool>
<bool name="config_bluetooth_le_peripheral_mode_supported">false</bool>
<bool name="config_carrier_volte_available">false</bool>
<bool name="config_carrier_wfc_ims_available">false</bool>
<bool name="config_device_volte_available">true</bool>
<bool name="config_device_vt_available">true</bool>
<bool name="config_device_wfc_ims_available">false</bool>
<bool name="config_displayBlanksAfterDoze">false</bool>
<bool name="config_displayBrightnessBucketsInDoze">false</bool>
<bool name="config_dozeAfterScreenOffByDefault">true</bool>
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
<bool name="config_dozePulsePickup">false</bool>
<bool name="config_dozeSupportsAodWallpaper">true</bool>
<bool name="config_enableBurnInProtection">false</bool>
<bool name="config_enableFusedLocationOverlay">false</bool>
<bool name="config_enableNetworkLocationOverlay">false</bool>
<bool name="config_fillMainBuiltInDisplayCutout">false</bool>
<bool name="config_fingerprintSupportsGestures">false</bool>
<bool name="config_hotswapCapable">false</bool>
<bool name="config_intrusiveNotificationLed">true</bool>
<bool name="config_lidControlsSleep">true</bool>
<item type="bool" name="config_nightDisplayAvailable">@bool/config_setColorTransformAccelerated</item>
<bool name="config_pinnerCameraApp">false</bool>
<bool name="config_pinnerHomeApp">false</bool>
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
<bool name="config_setColorTransformAccelerated">false</bool>
<bool name="config_showNavigationBar">false</bool>
<bool name="config_speed_up_audio_on_mt_calls">false</bool>
<bool name="config_supportAudioSourceUnprocessed">false</bool>
<bool name="config_supportDoubleTapWake">false</bool>
<bool name="config_supportSystemNavigationKeys">false</bool>
<bool name="config_suspendWhenScreenOffDueToProximity">false</bool>
<bool name="config_sustainedPerformanceModeSupported">false</bool>
<bool name="config_switch_phone_on_voice_reg_state_change">true</bool>
<bool name="config_useDevInputEventForAudioJack">false</bool>
<bool name="config_use_sim_language_file">false</bool>
<bool name="config_wifiDisplaySupportsProtectedBuffers">false</bool>
<bool name="skip_restoring_network_selection">false</bool>
</resources>
37 changes: 37 additions & 0 deletions Xiaomi/PocoF4GT/res/values/integers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="config_autoBrightnessBrighteningLightDebounce">4000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">8000</integer>
<integer name="config_autoBrightnessInitialLightSensorRate">-1</integer>
<integer name="config_autoBrightnessLightSensorRate">250</integer>
<integer name="config_autoPowerModeAnyMotionSensor">0</integer>
<integer name="config_bluetooth_idle_cur_ma">0</integer>
<integer name="config_bluetooth_max_connected_audio_devices">5</integer>
<integer name="config_bluetooth_operating_voltage_mv">0</integer>
<integer name="config_bluetooth_rx_cur_ma">0</integer>
<integer name="config_bluetooth_tx_cur_ma">0</integer>
<integer name="config_brightness_ramp_rate_fast">180</integer>
<integer name="config_brightness_ramp_rate_slow">60</integer>
<integer name="config_burnInProtectionMaxHorizontalOffset">0</integer>
<integer name="config_burnInProtectionMaxRadius">-1</integer>
<integer name="config_burnInProtectionMaxVerticalOffset">0</integer>
<integer name="config_burnInProtectionMinHorizontalOffset">0</integer>
<integer name="config_burnInProtectionMinVerticalOffset">0</integer>
<integer name="config_cameraLaunchGestureSensorType">-1</integer>
<integer name="config_defaultPeakRefreshRate">0</integer>
<integer name="config_defaultRefreshRate">60</integer>
<integer name="config_lightSensorWarmupTime">0</integer>
<integer name="config_mobile_mtu">1500</integer>
<integer name="config_overrideHasPermanentMenuKey">2</integer>
<integer name="config_previousVibrationsDumpLimit">50</integer>
<integer name="config_screenBrightnessDark">1</integer>
<integer name="config_screenBrightnessDim">10</integer>
<integer name="config_screenBrightnessDoze">1</integer>
<integer name="config_screenBrightnessForVrSettingDefault">86</integer>
<integer name="config_screenBrightnessForVrSettingMaximum">255</integer>
<integer name="config_screenBrightnessForVrSettingMinimum">79</integer>
<integer name="config_screenBrightnessSettingDefault">102</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
<integer name="config_screenBrightnessSettingMinimum">10</integer>
<integer name="config_shutdownBatteryTemperature">600</integer>
</resources>
6 changes: 6 additions & 0 deletions Xiaomi/PocoF4GT/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="config_cameraLaunchGestureSensorStringType" />
<string name="config_mainBuiltInDisplayCutout" />
<string name="config_mainBuiltInDisplayCutoutRectApproximation">@string/config_mainBuiltInDisplayCutout</string>
</resources>
69 changes: 69 additions & 0 deletions Xiaomi/PocoF4GT/res/xml/power_profile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="ambient.on.display0">0.1</item>
<item name="screen.on.display0">0.1</item>
<item name="screen.full.display0">0.1</item>
<item name="bluetooth.active">0.1</item>
<item name="bluetooth.on">0.1</item>
<item name="wifi.on">0.1</item>
<item name="wifi.active">0.1</item>
<item name="wifi.scan">0.1</item>
<item name="audio">0.1</item>
<item name="video">0.1</item>
<item name="camera.flashlight">0.1</item>
<item name="camera.avg">0.1</item>
<item name="gps.on">0.1</item>
<item name="radio.active">0.1</item>
<item name="radio.scanning">0.1</item>
<array name="radio.on">
<value>0.2</value>
<value>0.1</value>
</array>
<array name="cpu.active">
<value>0.1</value>
</array>
<array name="cpu.clusters.cores">
<value>1</value>
</array>
<array name="cpu.speeds.cluster0">
<value>400000</value>
</array>
<array name="cpu.active.cluster0">
<value>0.1</value>
</array>
<item name="cpu.idle">0.1</item>
<array name="memory.bandwidths">
<value>22.7</value>
</array>
<item name="battery.capacity">1000</item>
<item name="wifi.controller.idle">0</item>
<item name="wifi.controller.rx">0</item>
<item name="wifi.controller.tx">0</item>
<array name="wifi.controller.tx_levels" />
<item name="wifi.controller.voltage">0</item>
<array name="wifi.batchedscan">
<value>.0002</value>
<value>.002</value>
<value>.02</value>
<value>.2</value>
<value>2</value>
</array>
<modem>
<sleep>0</sleep>
<idle>0</idle>
<active rat="DEFAULT">
<receive>0</receive>
<transmit level="0">0</transmit>
<transmit level="1">0</transmit>
<transmit level="2">0</transmit>
<transmit level="3">0</transmit>
<transmit level="4">0</transmit>
</active>
</modem>
<item name="modem.controller.voltage">0</item>
<array name="gps.signalqualitybased">
<value>0</value>
<value>0</value>
</array>
<item name="gps.voltage">0</item>
</device>
52 changes: 52 additions & 0 deletions Xiaomi/PocoF4GT/res/xml/power_profile_test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="battery.capacity">3000</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>
1 change: 1 addition & 0 deletions overlay.mk
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ PRODUCT_PACKAGES += \
treble-overlay-xiaomi-pocof1 \
treble-overlay-xiaomi-pocof4 \
treble-overlay-xiaomi-pocof4-systemui \
treble-overlay-xiaomi-pocof4gt \
treble-overlay-xiaomi-pocom3pro5g \
treble-overlay-xiaomi-pocom4pro5g \
treble-overlay-xiaomi-pocom4pro5g-systemui \
Expand Down