Add overlay for Nokia 4.2

This commit is contained in:
Pierre-Hugues Husson 2019-10-27 23:45:16 +01:00
parent c91dfbb94e
commit c8241c3d45
6 changed files with 87 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-nokia-nokia_4_2
LOCAL_MODULE_PATH := $(TARGET_OUT)/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.nokia.nokia_4_2"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.vendor.build.fingerprint"
android:requiredSystemPropertyValue="+Nokia/Panther_00WW/PAN_sprout*"
android:priority="96"
android:isStatic="true" />
</manifest>

View file

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_automatic_brightness_available">true</bool>
<integer-array name="config_autoBrightnessDisplayValuesNits">
<item>17</item>
<item>87</item>
<item>165</item>
<item>285</item>
<item>432</item>
</integer-array>
<integer-array name="config_screenBrightnessBacklight">
<item>1</item>
<item>46</item>
<item>95</item>
<item>175</item>
<item>255</item>
</integer-array>
<integer-array name="config_screenBrightnessNits">
<item>17</item>
<item>87</item>
<item>165</item>
<item>285</item>
<item>432</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>100</item>
<item>400</item>
<item>2000</item>
<item>10000</item>
</integer-array>
<integer name="config_screenBrightnessSettingMinimum">1</integer>
<integer name="config_screenBrightnessSettingMaximum">255</integer>
</resources>

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="config_showNavigationBar">true</bool>
</resources>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_height_portrait">60px</dimen>
<dimen name="status_bar_height_landscape">60px</dimen>
<string name="config_mainBuiltInDisplayCutout">M 0,0 L -24,0 C -24,0 -24,31 0,31 C 0,31 24,31 24,0 Z @dp</string>
</resources>

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<device name="Android">
<item name="screen.on">63</item>
<item name="screen.full">261</item>
<array name="cpu.speeds">
<value>200000</value>
<value>499200</value>
<value>533333</value>
<value>800000</value>
<value>998400</value>
<value>1094400</value>
<value>1209600</value>
</array>
<array name="cpu.active">
<value>151</value>
<value>169</value>
<value>177</value>
<value>195</value>
<value>259</value>
<value>307</value>
<value>353</value>
</array>
<item name="cpu.awake">1.6</item>
<item name="cpu.idle">1.6</item>
<item name="battery.capacity">3000</item>
</device>