From d9f3425bfc9f70dadf362a5624c29790904aa9d7 Mon Sep 17 00:00:00 2001 From: Glen Kuhne Date: Fri, 7 Apr 2017 14:54:17 -0700 Subject: [PATCH] grus: Set default hotspot ssid Added a device specific overlay that changes the default name from "AndroidAp" to customized name Test: Builds, manually verified name change Bug: 36368950 Change-Id: I38a5f6fb950d6a45342080bae186a8ed276d94bf --- device.mk | 4 +++ rro_overlays/WifiOverlay/Android.bp | 7 +++++ rro_overlays/WifiOverlay/AndroidManifest.xml | 27 +++++++++++++++++++ .../WifiOverlay/res/values/config.xml | 22 +++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 rro_overlays/WifiOverlay/Android.bp create mode 100644 rro_overlays/WifiOverlay/AndroidManifest.xml create mode 100644 rro_overlays/WifiOverlay/res/values/config.xml diff --git a/device.mk b/device.mk index 3d874e9..186e113 100644 --- a/device.mk +++ b/device.mk @@ -42,5 +42,9 @@ PRODUCT_SHIPPING_API_LEVEL := 28 PRODUCT_SOONG_NAMESPACES += \ $(LOCAL_PATH) +# WiFi +PRODUCT_PACKAGES += \ + TargetWifiOverlay + # Inherit from the proprietary version $(call inherit-product, vendor/xiaomi/grus/grus-vendor.mk) diff --git a/rro_overlays/WifiOverlay/Android.bp b/rro_overlays/WifiOverlay/Android.bp new file mode 100644 index 0000000..420f65e --- /dev/null +++ b/rro_overlays/WifiOverlay/Android.bp @@ -0,0 +1,7 @@ +runtime_resource_overlay { + name: "TargetWifiOverlay", + theme: "TargetWifiOverlay", + certificate: "platform", + sdk_version: "current", + product_specific: true +} diff --git a/rro_overlays/WifiOverlay/AndroidManifest.xml b/rro_overlays/WifiOverlay/AndroidManifest.xml new file mode 100644 index 0000000..5fd5641 --- /dev/null +++ b/rro_overlays/WifiOverlay/AndroidManifest.xml @@ -0,0 +1,27 @@ + + + + + + + diff --git a/rro_overlays/WifiOverlay/res/values/config.xml b/rro_overlays/WifiOverlay/res/values/config.xml new file mode 100644 index 0000000..f7557d0 --- /dev/null +++ b/rro_overlays/WifiOverlay/res/values/config.xml @@ -0,0 +1,22 @@ + + + + + Xiaomi Mi 9 SE +