Add resources for Nubia Red Magic 3s (NX629J)
This commit is contained in:
parent
740db8a91d
commit
433447733a
8
Nubia/RedMagic3s/Android.mk
Normal file
8
Nubia/RedMagic3s/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-nubia-redmagic3s
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/overlay
|
||||
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
include $(BUILD_PACKAGE)
|
10
Nubia/RedMagic3s/AndroidManifest.xml
Normal file
10
Nubia/RedMagic3s/AndroidManifest.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="me.phh.treble.overlay.nubia.redmagic3s"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<overlay android:targetPackage="android"
|
||||
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
|
||||
android:requiredSystemPropertyValue="+*ubia/NX629J*"
|
||||
android:priority="849"
|
||||
android:isStatic="true" />
|
||||
</manifest>
|
62
Nubia/RedMagic3s/res/values/config.xml
Normal file
62
Nubia/RedMagic3s/res/values/config.xml
Normal file
|
@ -0,0 +1,62 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer-array name="config_autoBrightnessLcdBacklightValues">
|
||||
<item>4</item>
|
||||
<item>9</item>
|
||||
<item>27</item>
|
||||
<item>48</item>
|
||||
<item>61</item>
|
||||
<item>69</item>
|
||||
<item>117</item>
|
||||
<item>170</item>
|
||||
<item>223</item>
|
||||
</integer-array>
|
||||
<integer-array name="config_autoBrightnessLevels">
|
||||
<item>1</item>
|
||||
<item>10</item>
|
||||
<item>50</item>
|
||||
<item>100</item>
|
||||
<item>400</item>
|
||||
<item>900</item>
|
||||
<item>2000</item>
|
||||
<item>5000</item>
|
||||
</integer-array>
|
||||
<bool name="config_automatic_brightness_available">true</bool>
|
||||
<bool name="config_setColorTransformAccelerated">true</bool>
|
||||
<bool name="config_supportAudioSourceUnprocessed">false</bool>
|
||||
<bool name="config_useDevInputEventForAudioJack">true</bool>
|
||||
<bool name="skip_restoring_network_selection">true</bool>
|
||||
<bool name="config_bluetooth_le_peripheral_mode_supported">true</bool>
|
||||
<bool name="config_carrier_volte_available">true</bool>
|
||||
<bool name="config_device_volte_available">true</bool>
|
||||
<bool name="config_device_vt_available">true</bool>
|
||||
<bool name="config_device_wfc_ims_available">true</bool>
|
||||
<bool name="config_hotswapCapable">true</bool>
|
||||
<bool name="config_lidControlsSleep">false</bool>
|
||||
<bool name="config_wifiDisplaySupportsProtectedBuffers">true</bool>
|
||||
<bool name="config_wifi_background_scan_support">true</bool>
|
||||
<bool name="config_wifi_batched_scan_supported">true</bool>
|
||||
<bool name="config_wifi_dual_band_support">true</bool>
|
||||
<bool name="config_displayBlanksAfterDoze">false</bool>
|
||||
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">false</bool>
|
||||
<bool name="config_showNavigationBar">true</bool>
|
||||
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300.0%</fraction>
|
||||
<fraction name="config_maximumScreenDimRatio">20.000004%</fraction>
|
||||
<integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
|
||||
<integer name="config_autoBrightnessDarkeningLightDebounce">1500</integer>
|
||||
<integer name="config_screenBrightnessDark">1</integer>
|
||||
<integer name="config_screenBrightnessDim">10</integer>
|
||||
<integer name="config_screenBrightnessDoze">17</integer>
|
||||
<integer name="config_screenBrightnessSettingDefault">91</integer>
|
||||
<integer name="config_screenBrightnessSettingMaximum">255</integer>
|
||||
<integer name="config_screenBrightnessSettingMinimum">10</integer>
|
||||
<integer name="config_bluetooth_idle_cur_ma">1</integer>
|
||||
<integer name="config_bluetooth_operating_voltage_mv">3300</integer>
|
||||
<integer name="config_bluetooth_rx_cur_ma">2</integer>
|
||||
<integer name="config_bluetooth_tx_cur_ma">3</integer>
|
||||
<integer name="config_shutdownBatteryTemperature">680</integer>
|
||||
|
||||
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
|
||||
<bool name="config_dozeAfterScreenOff">true</bool>
|
||||
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
|
||||
</resources>
|
176
Nubia/RedMagic3s/res/xml/power_profile.xml
Normal file
176
Nubia/RedMagic3s/res/xml/power_profile.xml
Normal file
|
@ -0,0 +1,176 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<device name="Android">
|
||||
<item name="none">0</item>
|
||||
<item name="screen.on">80</item>
|
||||
<item name="screen.full">340</item>
|
||||
<item name="bluetooth.active">80</item>
|
||||
<item name="bluetooth.on">1</item>
|
||||
<item name="wifi.on">1</item>
|
||||
<item name="wifi.active">61</item>
|
||||
<item name="wifi.scan">30</item>
|
||||
<item name="dsp.audio">78</item>
|
||||
<item name="dsp.video">58</item>
|
||||
<item name="camera.flashlight">300</item>
|
||||
<item name="camera.avg">550</item>
|
||||
<item name="radio.active">159</item>
|
||||
<item name="radio.scanning">4</item>
|
||||
<item name="gps.on">46</item>
|
||||
<array name="radio.on">
|
||||
<value>3.9</value>
|
||||
<value>2.8</value>
|
||||
</array>
|
||||
<array name="gpu.speeds">
|
||||
<value>587000000</value>
|
||||
<value>525000000</value>
|
||||
<value>490000000</value>
|
||||
<value>441600000</value>
|
||||
<value>400000000</value>
|
||||
<value>30500000</value>
|
||||
</array>
|
||||
<array name="gpu.active">
|
||||
<value>327</value>
|
||||
<value>255</value>
|
||||
<value>248</value>
|
||||
<value>240</value>
|
||||
<value>207</value>
|
||||
<value>141</value>
|
||||
</array>
|
||||
<item name="cpu.idle">4</item>
|
||||
<item name="cpu.awake">20</item>
|
||||
<array name="cpu.clusters.cores">
|
||||
<value>4</value>
|
||||
<value>3</value>
|
||||
<value>1</value>
|
||||
</array>
|
||||
<array name="cpu.core_speeds.cluster0">
|
||||
<value>300000</value>
|
||||
<value>403200</value>
|
||||
<value>518400</value>
|
||||
<value>614400</value>
|
||||
<value>691200</value>
|
||||
<value>787200</value>
|
||||
<value>883200</value>
|
||||
<value>979200</value>
|
||||
<value>1075200</value>
|
||||
<value>1171200</value>
|
||||
<value>1248000</value>
|
||||
<value>1344000</value>
|
||||
<value>1420800</value>
|
||||
<value>1516800</value>
|
||||
<value>1612800</value>
|
||||
<value>1708800</value>
|
||||
<value>1804800</value>
|
||||
</array>
|
||||
<array name="cpu.core_power.cluster0">
|
||||
<value>16</value>
|
||||
<value>17</value>
|
||||
<value>20</value>
|
||||
<value>21</value>
|
||||
<value>22</value>
|
||||
<value>23</value>
|
||||
<value>24</value>
|
||||
<value>26</value>
|
||||
<value>27</value>
|
||||
<value>30</value>
|
||||
<value>33</value>
|
||||
<value>35</value>
|
||||
<value>36</value>
|
||||
<value>39</value>
|
||||
<value>45</value>
|
||||
<value>55</value>
|
||||
<value>56</value>
|
||||
</array>
|
||||
<array name="cpu.core_speeds.cluster1">
|
||||
<value>710400</value>
|
||||
<value>825600</value>
|
||||
<value>940800</value>
|
||||
<value>1056000</value>
|
||||
<value>1171200</value>
|
||||
<value>1286400</value>
|
||||
<value>1382400</value>
|
||||
<value>1478400</value>
|
||||
<value>1574400</value>
|
||||
<value>1670400</value>
|
||||
<value>1766400</value>
|
||||
<value>1862400</value>
|
||||
<value>1958400</value>
|
||||
<value>2054400</value>
|
||||
<value>2150400</value>
|
||||
<value>2246400</value>
|
||||
<value>2342400</value>
|
||||
<value>2419200</value>
|
||||
</array>
|
||||
<array name="cpu.core_power.cluster1">
|
||||
<value>60</value>
|
||||
<value>69</value>
|
||||
<value>80</value>
|
||||
<value>89</value>
|
||||
<value>99</value>
|
||||
<value>111</value>
|
||||
<value>122</value>
|
||||
<value>133</value>
|
||||
<value>147</value>
|
||||
<value>159</value>
|
||||
<value>174</value>
|
||||
<value>197</value>
|
||||
<value>222</value>
|
||||
<value>242</value>
|
||||
<value>267</value>
|
||||
<value>288</value>
|
||||
<value>316</value>
|
||||
<value>334</value>
|
||||
</array>
|
||||
<array name="cpu.core_speeds.cluster2">
|
||||
<value>844800</value>
|
||||
<value>960000</value>
|
||||
<value>1075200</value>
|
||||
<value>1190400</value>
|
||||
<value>1305600</value>
|
||||
<value>1401600</value>
|
||||
<value>1516800</value>
|
||||
<value>1632000</value>
|
||||
<value>1747200</value>
|
||||
<value>1862400</value>
|
||||
<value>1977600</value>
|
||||
<value>2073600</value>
|
||||
<value>2169600</value>
|
||||
<value>2265600</value>
|
||||
<value>2361600</value>
|
||||
<value>2457600</value>
|
||||
<value>2553600</value>
|
||||
<value>2649600</value>
|
||||
<value>2745600</value>
|
||||
<value>2841600</value>
|
||||
</array>
|
||||
<array name="cpu.core_power.cluster2">
|
||||
<value>77</value>
|
||||
<value>85</value>
|
||||
<value>96</value>
|
||||
<value>107</value>
|
||||
<value>228</value>
|
||||
<value>127</value>
|
||||
<value>146</value>
|
||||
<value>161</value>
|
||||
<value>180</value>
|
||||
<value>198</value>
|
||||
<value>228</value>
|
||||
<value>252</value>
|
||||
<value>295</value>
|
||||
<value>306</value>
|
||||
<value>319</value>
|
||||
<value>351</value>
|
||||
<value>379</value>
|
||||
<value>414</value>
|
||||
<value>453</value>
|
||||
<value>518</value>
|
||||
</array>
|
||||
<item name="battery.capacity">4500</item>
|
||||
<array name="wifi.batchedscan">
|
||||
<value>.0002</value>
|
||||
<value>.002</value>
|
||||
<value>.02</value>
|
||||
<value>.2</value>
|
||||
<value>2</value>
|
||||
</array>
|
||||
</device>
|
||||
|
|
@ -94,6 +94,7 @@ PRODUCT_PACKAGES += \
|
|||
treble-overlay-nokia-pl2-6.1 \
|
||||
treble-overlay-nokia-pnx-8.1-x7 \
|
||||
treble-overlay-nokia-pnx-8.1-x7-systemui \
|
||||
treble-overlay-nubia-redmagic3s \
|
||||
treble-overlay-nubia-z18mini \
|
||||
treble-overlay-oneplus-n200 \
|
||||
treble-overlay-oneplus-n200-systemui \
|
||||
|
|
Loading…
Reference in a new issue