From a58d6963834cb4cda5625ae7760af70f7ad1f12a Mon Sep 17 00:00:00 2001 From: Dario Trombello Date: Thu, 21 May 2020 23:38:29 +0200 Subject: [PATCH] j7elte: Add device specific overlays --- device.mk | 3 + .../base/core/res/res/values/config.xml | 127 ++++++++++++++++++ .../base/core/res/res/xml/power_profile.xml | 58 ++++++++ .../SettingsLib/res/values/arrays.xml | 29 ++++ .../packages/SystemUI/res/values/config.xml | 25 ++++ .../lineage/res/res/values/config.xml | 69 ++++++++++ .../packages/apps/Mms/res/xml/mms_config.xml | 38 ++++++ .../apps/Settings/res/values/config.xml | 21 +++ 8 files changed, 370 insertions(+) create mode 100644 overlay/frameworks/base/core/res/res/values/config.xml create mode 100644 overlay/frameworks/base/core/res/res/xml/power_profile.xml create mode 100644 overlay/frameworks/base/packages/SettingsLib/res/values/arrays.xml create mode 100644 overlay/frameworks/base/packages/SystemUI/res/values/config.xml create mode 100644 overlay/lineage-sdk/lineage/res/res/values/config.xml create mode 100644 overlay/packages/apps/Mms/res/xml/mms_config.xml create mode 100644 overlay/packages/apps/Settings/res/values/config.xml diff --git a/device.mk b/device.mk index d98c5db..c50108d 100644 --- a/device.mk +++ b/device.mk @@ -47,6 +47,9 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \ $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl +# Overlays +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay + # Permissions PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml new file mode 100644 index 0000000..8406360 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,127 @@ + + + + + + + + true + + + com.android.systemui/com.android.systemui.doze.DozeService + + + + true + + + + lte:524288,1048576,2097152,262144,524288,1048576 + + + + 524288,1048576,4525824,524288,1048576,4525824 + + + com.google.android.gms + + + + + + + wifi,1,1,1,-1,true + mobile,0,0,0,-1,true + mobile_mms,2,0,2,240000,true + mobile_supl,3,0,2,60000,true + mobile_dun,4,0,2,60000,true + mobile_hipri,5,0,3,60000,true + bluetooth,7,7,0,-1,true + ethernet,9,9,2,-1,true + mobile_fota,10,0,2,60000,true + mobile_ims,11,0,1,-1,true + mobile_cbs,12,0,2,60000,true + wifi_p2p,13,1,0,-1,true + mobile_ia,14,0,2,-1,true + mobile_emergency,15,0,2,-1,true + + + + 5 + + + 140 + + + 19 + + + 2 + + + GSM|WCDMA|LTE + + + true + + + true + + + true + + + 4 + diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml new file mode 100644 index 0000000..84b0ebc --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,58 @@ + + + 0 + 78 + 422 + 1 + 106 + 1 + 273 + 580 + 1 + 38 + 218 + 163 + 34 + + 2 + 2 + + + 1500000 + 1400000 + 1300000 + 1200000 + 1100000 + 1000000 + 900000 + 800000 + 700000 + 600000 + 500000 + 400000 + + 2 + 0.15 + + 141 + 126 + 111 + 98 + 89 + 80 + 70 + 65 + 54 + 50 + 46 + 42 + + 3000 + + .0002 + .002 + .02 + .2 + 2 + + diff --git a/overlay/frameworks/base/packages/SettingsLib/res/values/arrays.xml b/overlay/frameworks/base/packages/SettingsLib/res/values/arrays.xml new file mode 100644 index 0000000..74c22e8 --- /dev/null +++ b/overlay/frameworks/base/packages/SettingsLib/res/values/arrays.xml @@ -0,0 +1,29 @@ + + + + + + 0 + -1 + -1 + + diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml new file mode 100644 index 0000000..4222fd2 --- /dev/null +++ b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml @@ -0,0 +1,25 @@ + + + + + + + true + diff --git a/overlay/lineage-sdk/lineage/res/res/values/config.xml b/overlay/lineage-sdk/lineage/res/res/values/config.xml new file mode 100644 index 0000000..7372216 --- /dev/null +++ b/overlay/lineage-sdk/lineage/res/res/values/config.xml @@ -0,0 +1,69 @@ + + + + + + true + 400 + false + + + true + + + 0 + + + 0 + + + 83 + + + 1 + diff --git a/overlay/packages/apps/Mms/res/xml/mms_config.xml b/overlay/packages/apps/Mms/res/xml/mms_config.xml new file mode 100644 index 0000000..96c2a5c --- /dev/null +++ b/overlay/packages/apps/Mms/res/xml/mms_config.xml @@ -0,0 +1,38 @@ + + + + + + + + + 1045876 + + + 2592 + + + 2592 + + + http://www.google.com/oha/rdf/ua-profile-kila.xml + + diff --git a/overlay/packages/apps/Settings/res/values/config.xml b/overlay/packages/apps/Settings/res/values/config.xml new file mode 100644 index 0000000..9699e82 --- /dev/null +++ b/overlay/packages/apps/Settings/res/values/config.xml @@ -0,0 +1,21 @@ + + + + + + true + -- 2.20.1