From fac5d78c2a18d0220069a20fa4a9ecc1e7f047a1 Mon Sep 17 00:00:00 2001 From: Stricted Date: Mon, 15 Oct 2018 00:11:48 +0200 Subject: [PATCH] s5neolte: add device specific overlays Change-Id: I7df6c0e1aa8f932d6e69cd6f5e140e1683d746d7 --- device.mk | 3 + .../base/core/res/res/values/config.xml | 229 ++++++++++++++++++ .../base/core/res/res/xml/power_profile.xml | 60 +++++ .../SettingsLib/res/values/arrays.xml | 29 +++ .../SettingsProvider/res/values/defaults.xml | 21 ++ .../lineage/res/res/values/config.xml | 81 +++++++ .../packages/apps/Mms/res/xml/mms_config.xml | 38 +++ .../apps/Settings/res/values/config.xml | 21 ++ .../services/Telephony/res/values/config.xml | 22 ++ 9 files changed, 504 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/SettingsProvider/res/values/defaults.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 create mode 100644 overlay/packages/services/Telephony/res/values/config.xml diff --git a/device.mk b/device.mk index 1cb263d..df5de4e 100644 --- a/device.mk +++ b/device.mk @@ -85,6 +85,9 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.rc +# Overlays +DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay + # Wi-fi PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \ 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..c596055 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,229 @@ + + + + + + + + + + "1,1" + + "0,1" + + "7,1" + + + + false + + + 10 + + + true + + + com.android.systemui/com.android.systemui.doze.DozeService + + + + true + + + true + + + true + + + + lte:1048576,3145728,4194304,524288,1572864,2097152 + + + + 524288,1048576,4525824,524288,1048576,4525824 + + + 4 + + + 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 + mobile_bip,23,0,2,60000,true + mobile_cas,24,0,3,60000,true + mobile_xcap,27,0,2,60000,true + mobile_ent1,28,0,2,-1,true + mobile_ent2,29,0,2,-1,true + + + + + + 0 + 1 + 4 + 5 + 7 + 9 + + + + true + + + rmnet0 + + + 0 + 0 + + + + 9 + 30 + 100 + 325 + 1250 + 3500 + 10000 + 20000 + + + + + 18 + 30 + 59 + 74 + 92 + 118 + 155 + 222 + 255 + + + + 10 + + + 134 + + + 10 + + + true + + + 3 + + + 2 + + + GSM | WCDMA | LTE | CDMA | EVDO + + + + XTRA_SERVER_1=https://glltos1.glpals.com/4day/v3/latest/lto2.dat + XTRA_SERVER_2=https://glltos2.glpals.com/4day/v3/latest/lto2.dat + + 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..69969c0 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,60 @@ + + + 0 + 39 + 330 + 1 + 66 + 1 + 141 + 364 + 1 + 17 + 72 + 177 + 2 + + 2 + 2 + + + 1600000 + 1500000 + 1400000 + 1300000 + 1200000 + 1100000 + 1000000 + 900000 + 800000 + 700000 + 600000 + 500000 + 400000 + + 2.2 + 0.15 + + 178 + 161 + 146 + 131 + 115 + 105 + 94 + 83 + 77 + 66 + 62 + 60 + 55 + + 2800 + + .0002 + .002 + .02 + .2 + 2 + + \ No newline at end of file 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/SettingsProvider/res/values/defaults.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml new file mode 100644 index 0000000..ba79867 --- /dev/null +++ b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml @@ -0,0 +1,21 @@ + + + + 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..25eeeb1 --- /dev/null +++ b/overlay/lineage-sdk/lineage/res/res/values/config.xml @@ -0,0 +1,81 @@ + + + + + true + 400 + false + + + 1900 + 25000 + + + 7500 + 6000 + + + 20000 + + + true + + + 107 + + + 0 + + + 83 + + + 65 + 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 + diff --git a/overlay/packages/services/Telephony/res/values/config.xml b/overlay/packages/services/Telephony/res/values/config.xml new file mode 100644 index 0000000..55ea7ce --- /dev/null +++ b/overlay/packages/services/Telephony/res/values/config.xml @@ -0,0 +1,22 @@ + + + + + + + true + -- 2.20.1