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:
Glen Kuhne 2017-04-07 14:54:17 -07:00 committed by Ivan Vecera
parent 0391e4d981
commit d9f3425bfc
4 changed files with 60 additions and 0 deletions

View File

@ -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)

View File

@ -0,0 +1,7 @@
runtime_resource_overlay {
name: "TargetWifiOverlay",
theme: "TargetWifiOverlay",
certificate: "platform",
sdk_version: "current",
product_specific: true
}

View 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>

View 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>