文件:frameworks/base/services/java/com/android/server/NetworkManagementService.java
public void startAccessPoint {
public void setAccessPoint{
修改
mConnector.execute("softap", "set", wlanIface, wifiConfig.SSID, getSecurityType(wifiConfig), wifiConfig.preSharedKey, getApChannel(wifiConfig));
文件:system/netd/SoftapController.cpp
int SoftapController::setSoftap(int argc, char *argv[]) {
從參數(shù)獲取channel的值
參考鏈接:
https://android.googlesource.com/platform/frameworks/base/+/a0be0fb%5E!/
快照: