In the native Android 9 system, the WLAN hotspot name is set by default in the system and cannot be modified by the user. If it is modified in the system, it needs to be modified in the framework layer.
- Find the relevant Java source files
frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiApConfigStore.java
Assign a value getDefaultApConfiguration
to the config.SSID
variable in the method , which is the name of the corresponding WLAN hotspot.