Android 9.0 默认开启WLAN热点设置默认热点名称和密码
阿里云国内75折 回扣 微信号:monov8 |
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6 |
1.概述
在android 9.0的系统产品开发中,在项目产品需求中,对于wifi和默认热点的使用也是常有的功能,在最近的项目开发中,需要开启WLAN热点,然后设置WLAN的默认热点
的名称和密码功能,所以需要在系统启动完毕后,开启默认热点的ssid和密码。
2.默认开启WLAN热点设置默认热点名称和密码的核心类
frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java
frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiApConfigStore.java
3.默认开启WLAN热点设置默认热点名称和密码的核心功能分析和实现
3.1PhoneWindowManager.java中关于系统开机过程中启动默认热点的相关功能设置
/**
* WindowManagerPolicy implementation for the Android phone UI. This
* introduces a new method suffix, Lp, for an internal lock of the
* PhoneWindowManager. This is used to protect some internal state, and
* can be acquired with either the Lw and Li lock held,