为什么 setWifiEnabled() 会为 WRITE_SETTINGS 权限抛出 setWifiEnabled(下面的堆栈跟踪)?
java.lang.SecurityException: Permission Denial: writing com.android.providers.settings.SettingsProvider uri content://settings/system from pid=25173, uid=10148 requires android.permission.WRITE_SETTINGS
at android.os.Parcel.readException(Parcel.java:1332)
at android.os.Parcel.readException(Parcel.java:1286)
at android.net.wifi.IWifiManager$Stub$Proxy.setWifiEnabled(IWifiManager.java:1156)
at android.net.wifi.WifiManager.setWifiEnabled(WifiManager.java:971)
Android 文档中未提及此权限。是否应将 WRITE_SETTINGS 权限添加到清单中?