之前实验的时候想在com.android.setting/Settings.db中找到Wifi 的连接密码,结果失望了。不过最后在/data/misc/wifi/下的*.conf中找到了一些以network结构保存的wifi点。 (用*表示是因为每个机子上保存的时候命名不一样)

 

保存在通过WifiConfiguration,通过WifiManager 可以拿到WifiConfiguration。
private boolean connectConfiguration(int index) { 
                if (index >= configList.size()) { 
                        return false; 
                } 
                return mWifiManager.enableNetwork( 
                                ((WifiConfiguration) configList.get(index)).networkId, true); 
}

 

相关文章:

  • 2021-05-28
  • 2021-07-17
  • 2021-09-13
  • 2021-05-08
  • 2022-12-23
  • 2021-04-23
  • 2021-09-20
  • 2021-08-14
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-12-03
  • 2021-06-30
  • 2022-01-11
  • 2021-04-03
相关资源
相似解决方案