且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Android中以编程方式读取wifi密码

更新时间:2021-06-27 22:14:10

如果您的应用程序是特权应用程序(例如,使用SuperUser安装在/system/priv-app中),则可以在Lollipop中使用新的WifiManager#getPrivilegedConfiguredNetworks() API和更高版本.

If your application is a privileged app (that is - installed in /system/priv-app for example using SuperUser) then you can use the new WifiManager#getPrivilegedConfiguredNetworks() API in Lollipop and newer.

请参阅: https://android.googlesource .com/platform/frameworks/base/+/758bdf4a915c313f1c3bef0b95b494c91f363f03%5E%21/#F1