mirror of
https://github.com/LineageOS/android_device_xiaomi_grus.git
synced 2024-11-26 19:45:42 +00:00
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
This commit is contained in:
parent
0391e4d981
commit
d9f3425bfc
@ -42,5 +42,9 @@ PRODUCT_SHIPPING_API_LEVEL := 28
|
|||||||
PRODUCT_SOONG_NAMESPACES += \
|
PRODUCT_SOONG_NAMESPACES += \
|
||||||
$(LOCAL_PATH)
|
$(LOCAL_PATH)
|
||||||
|
|
||||||
|
# WiFi
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
TargetWifiOverlay
|
||||||
|
|
||||||
# Inherit from the proprietary version
|
# Inherit from the proprietary version
|
||||||
$(call inherit-product, vendor/xiaomi/grus/grus-vendor.mk)
|
$(call inherit-product, vendor/xiaomi/grus/grus-vendor.mk)
|
||||||
|
7
rro_overlays/WifiOverlay/Android.bp
Normal file
7
rro_overlays/WifiOverlay/Android.bp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
runtime_resource_overlay {
|
||||||
|
name: "TargetWifiOverlay",
|
||||||
|
theme: "TargetWifiOverlay",
|
||||||
|
certificate: "platform",
|
||||||
|
sdk_version: "current",
|
||||||
|
product_specific: true
|
||||||
|
}
|
27
rro_overlays/WifiOverlay/AndroidManifest.xml
Normal file
27
rro_overlays/WifiOverlay/AndroidManifest.xml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2019 The Android Open Source Project
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
-->
|
||||||
|
<!-- Xiaomi Mi 9 SE specific wifi overlays -->
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="com.android.wifi.resources.grus"
|
||||||
|
android:versionCode="1"
|
||||||
|
android:versionName="1.0">
|
||||||
|
<application android:hasCode="false" />
|
||||||
|
<overlay
|
||||||
|
android:targetPackage="com.android.wifi.resources"
|
||||||
|
android:targetName="WifiCustomization"
|
||||||
|
android:isStatic="true"
|
||||||
|
android:priority="1"/>
|
||||||
|
</manifest>
|
22
rro_overlays/WifiOverlay/res/values/config.xml
Normal file
22
rro_overlays/WifiOverlay/res/values/config.xml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2019 The Android Open Source Project
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
-->
|
||||||
|
<resources>
|
||||||
|
<!-- Default access point SSID used for tethering -->
|
||||||
|
<string name="wifi_tether_configure_ssid_default" translatable="false">Xiaomi Mi 9 SE</string>
|
||||||
|
</resources>
|
Loading…
Reference in New Issue
Block a user