From aebc8381c19d1dc051e908b3a6ac135e543b19b3 Mon Sep 17 00:00:00 2001 From: Danny Wood Date: Thu, 25 Apr 2019 19:02:42 +0100 Subject: [PATCH] a7xelte: Add device specific overlays Change-Id: If367a58dd02f8fedb2c90276cfc1b327673f2d4b --- device.mk | 3 + .../base/core/res/res/values/config.xml | 309 ++++++++++++++++++ .../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 | 83 +++++ .../packages/apps/Mms/res/xml/mms_config.xml | 38 +++ .../apps/Settings/res/values/config.xml | 21 ++ .../services/Telephony/res/values/config.xml | 23 ++ 9 files changed, 587 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 ee58e40..93959bc 100644 --- a/device.mk +++ b/device.mk @@ -115,6 +115,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 + # Vendor security patch level (vendor blobs from A510FXXS8CSC1) PRODUCT_PROPERTY_OVERRIDES += \ ro.lineage.build.vendor_security_patch=2019-04-01 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..9d04c19 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,309 @@ + + + + + + + + + + + "1,1" + + "0,1" + + "7,1" + + + + false + + + 1 + + + true + + + com.android.systemui/com.android.systemui.doze.DozeService + + + + true + + + true + + + true + + + + lte:1048576,3145728,4194304,1048576,3145728,4194304 + umts:4094,87380,1220608,4096,16384,1220608 + hspa:4094,87380,1220608,4096,16384,1220608 + hsupa:4094,87380,1220608,4096,16384,1220608 + hsdpa:4094,87380,1220608,4096,16384,1220608 + hspap:4094,87380,1220608,4096,16384,1220608 + + + + 524288,1048576,2097152,262144,524288,1048576 + + + 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 + + + + + + 0 + 1 + 4 + 5 + 7 + 9 + + + + true + + + rmnet0 + + + 2000 + 4000 + + + + 9 + 30 + 100 + 325 + 1250 + 3500 + 10000 + 20000 + + + + + 18 + 30 + 59 + 74 + 92 + 118 + 155 + 222 + 255 + + + + 0 + + + 134 + + + 19 + + + 3 + + + 2 + + + GSM | WCDMA | LTE + + + + XTRA_SERVER_1=https://glltos1.glpals.com/4day/v3/latest/lto2.dat + XTRA_SERVER_2=https://glltos2.glpals.com/4day/v3/latest/lto2.dat + + + + false + + + false + + + false + + + true + + + 10 + + + 20 + + + 600 + + + 1 + + + 80 + + + 250 + + + 250 + + + 5000 + + + 0 + + + true + + + 50% + + + true + + + 10 + + + true + 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..99fe604 --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,60 @@ + + + 0 + 71 + 315 + 1 + 57 + 1 + 62 + 351 + 1 + 39 + 59 + 170 + 224 + + 2 + 2 + + + 1600000 + 1500000 + 1400000 + 1300000 + 1200000 + 1100000 + 1000000 + 900000 + 800000 + 700000 + 600000 + 500000 + 400000 + + 2.6 + 0.15 + + 178 + 161 + 146 + 131 + 115 + 105 + 94 + 83 + 77 + 66 + 62 + 60 + 55 + + 2900 + + .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..b0f0d67 --- /dev/null +++ b/overlay/lineage-sdk/lineage/res/res/values/config.xml @@ -0,0 +1,83 @@ + + + + + + true + 400 + false + + + 1900 + 25000 + + + 6500 + 4800 + + + 10000 + 1000 + + + 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 + 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..302311d --- /dev/null +++ b/overlay/packages/services/Telephony/res/values/config.xml @@ -0,0 +1,23 @@ + + + + + + + + true + -- 2.20.1