Android 修改默认WiFi热点名称
Posted 王睿丶
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android 修改默认WiFi热点名称相关的知识,希望对你有一定的参考价值。
frameworks/opt/net/wifi/service/java/com/android/server/wifi
diff --git a/opt/net/wifi/service/java/com/android/server/wifi/WifiApConfigStore.java b/opt/net/wifi/service/java/com/android/server/wifi/WifiApConfigStore.java
index 3de99711b..1be2d1505 100644
--- a/opt/net/wifi/service/java/com/android/server/wifi/WifiApConfigStore.java
+++ b/opt/net/wifi/service/java/com/android/server/wifi/WifiApConfigStore.java
@@ -273,8 +273,7 @@ public class WifiApConfigStore
private SoftApConfiguration getDefaultApConfiguration()
SoftApConfiguration.Builder configBuilder = new SoftApConfiguration.Builder();
configBuilder.setBand(SoftApConfiguration.BAND_2GHZ);
- configBuilder.setSsid(mContext.getResources().getString(
- R.string.wifi_tether_configure_ssid_default) + "_" + getRandomIntForDefaultSsid());
+ configBuilder.setSsid("WangRui 0006");
if (ApConfigUtil.isWpa3SaeSupported(mContext))
configBuilder.setPassphrase(generatePassword(),
SoftApConfiguration.SECURITY_TYPE_WPA3_SAE_TRANSITION);
以上是关于Android 修改默认WiFi热点名称的主要内容,如果未能解决你的问题,请参考以下文章