From 5eac8a1e4b69eba22934dea46d10fc1cf37f208a Mon Sep 17 00:00:00 2001 From: AdarshGrewal Date: Wed, 9 Jun 2021 14:09:31 +0530 Subject: [PATCH] sweet: add RROs for setting correct device name and hotspot ssid Check device variant by using ro.boot.hwc and ro.boot.proudct.hardware.sku, and set the correct model based on value of ro.product.marketname on stock ROM --- device.mk | 2 ++ .../SweetinproSettingsProvider/Android.bp | 5 ++++ .../AndroidManifest.xml | 25 ++++++++++++++++ .../res/values/defaults.xml | 22 ++++++++++++++ rro_overlays/SweetinproWifiOverlay/Android.bp | 7 +++++ .../SweetinproWifiOverlay/AndroidManifest.xml | 29 +++++++++++++++++++ .../res/values/config.xml | 26 +++++++++++++++++ 7 files changed, 116 insertions(+) create mode 100644 rro_overlays/SweetinproSettingsProvider/Android.bp create mode 100644 rro_overlays/SweetinproSettingsProvider/AndroidManifest.xml create mode 100644 rro_overlays/SweetinproSettingsProvider/res/values/defaults.xml create mode 100644 rro_overlays/SweetinproWifiOverlay/Android.bp create mode 100644 rro_overlays/SweetinproWifiOverlay/AndroidManifest.xml create mode 100644 rro_overlays/SweetinproWifiOverlay/res/values/config.xml diff --git a/device.mk b/device.mk index 179a67d..33bb0ca 100644 --- a/device.mk +++ b/device.mk @@ -46,6 +46,8 @@ DEVICE_PACKAGE_OVERLAYS += \ # Overlay-RRO PRODUCT_PACKAGES += \ + SweetinproSettingsProvider \ + SweetinproWifiOverlay \ SweetWifiOverlay # Partitions diff --git a/rro_overlays/SweetinproSettingsProvider/Android.bp b/rro_overlays/SweetinproSettingsProvider/Android.bp new file mode 100644 index 0000000..ebabe72 --- /dev/null +++ b/rro_overlays/SweetinproSettingsProvider/Android.bp @@ -0,0 +1,5 @@ +runtime_resource_overlay { + name: "SweetinproSettingsProvider", + sdk_version: "current", + product_specific: true, +} diff --git a/rro_overlays/SweetinproSettingsProvider/AndroidManifest.xml b/rro_overlays/SweetinproSettingsProvider/AndroidManifest.xml new file mode 100644 index 0000000..50a5b57 --- /dev/null +++ b/rro_overlays/SweetinproSettingsProvider/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + diff --git a/rro_overlays/SweetinproSettingsProvider/res/values/defaults.xml b/rro_overlays/SweetinproSettingsProvider/res/values/defaults.xml new file mode 100644 index 0000000..877b2e7 --- /dev/null +++ b/rro_overlays/SweetinproSettingsProvider/res/values/defaults.xml @@ -0,0 +1,22 @@ + + + + + Redmi Note 10 Pro Max + diff --git a/rro_overlays/SweetinproWifiOverlay/Android.bp b/rro_overlays/SweetinproWifiOverlay/Android.bp new file mode 100644 index 0000000..be3a04a --- /dev/null +++ b/rro_overlays/SweetinproWifiOverlay/Android.bp @@ -0,0 +1,7 @@ +runtime_resource_overlay { + name: "SweetinproWifiOverlay", + theme: "SweetinproWifiOverlay", + certificate: "platform", + sdk_version: "current", + product_specific: true +} diff --git a/rro_overlays/SweetinproWifiOverlay/AndroidManifest.xml b/rro_overlays/SweetinproWifiOverlay/AndroidManifest.xml new file mode 100644 index 0000000..2272b51 --- /dev/null +++ b/rro_overlays/SweetinproWifiOverlay/AndroidManifest.xml @@ -0,0 +1,29 @@ + + + + + + + diff --git a/rro_overlays/SweetinproWifiOverlay/res/values/config.xml b/rro_overlays/SweetinproWifiOverlay/res/values/config.xml new file mode 100644 index 0000000..509e5ca --- /dev/null +++ b/rro_overlays/SweetinproWifiOverlay/res/values/config.xml @@ -0,0 +1,26 @@ + + + + + + + + Redmi Note 10 Pro Max +