Wednesday, February 26, 2014
android wifi password entered in the save path
android wifi wifi password after input device can be connected, will be able to access, but the wifi password is stored in which we enter the place?<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
If you want to view the system information file if required root a phone, we can get to the root privileges.
wifi passwords exist in the system path to the file: / data / misc / wifi / wpa_supplicant.conf, using the RE Manager can be opened in text view, but the password is encrypted: the vast majority are encrypted with psa/psK2 , is also useful wep encrypted, not easy to crack.
Reply:
Well, thank you, I know that mobile devices, currently this is the android TV box this device, I do not know you have to know this kind of wooden equipment
Reply:
Oh, android device or TV set-top box would know better than less, and now Internet TV is hot, traditional TV manufacturers all have to cooperate with the Internet big boys, brothers, you engage in this direction should be promising! However, if the operating system is based on android app development should and similar mobile devices, really want to see if a better understanding of the source will be more helpful.
Reply:
Well, looking at the source code
Reply:
/ Data / misc / wifi / wpa_supplicant.conf
There is no encryption
Reply:
Resolved, the following is the password verification code block
public boolean addConnect (String ssid, String password) {
WifiConfiguration config = new WifiConfiguration ();
/ / If you have previously configured over the network, removing
WifiConfiguration tempConfig = this.IsExsits (ssid);
if (tempConfig! = null) {
mWifiManager.removeNetwork (tempConfig.networkId);
}
config.SSID = "\" "+ ssid +" \ "";
config.preSharedKey = "\" "+ password +" \ ""; / / Specify a password
/ / Config.hiddenSSID = true;
/ / Config.allowedAuthAlgorithms.set (WifiConfiguration.AuthAlgorithm.OPEN);
/ / Config.allowedGroupCiphers.set (WifiConfiguration.GroupCipher.TKIP);
/ / Config.allowedKeyManagement.set (WifiConfiguration.KeyMgmt.WPA_PSK);
/ / Config.allowedPairwiseCiphers
. / / Set (WifiConfiguration.PairwiseCipher.TKIP);
/ / Config.allowedProtocols.set (WifiConfiguration.Protocol.WPA);
/ / Config.status = WifiConfiguration.Status.ENABLED;
int netID = mWifiManager.addNetwork (config);
Log.d ("WifiPreference", "add Network returned" + netID);
/ / MWifiManager.updateNetwork (config);
boolean bRet = mWifiManager.enableNetwork (netID, true);
Log.d ("WifiPreference", "enableNetwork returned" + bRet);
mWifiManager.saveConfiguration ();
mWifiManager.reconnect ();
return bRet;
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment