http://en.androidwiki.com/wiki/Enabling_Hidden_SSID_Hack
To connect to a hidden SSID, the phone must have WifiConfiguration.hiddenSSID set to true. Currently there does not seem to be a way to enable this through the phone UI, but there is a workaround thanks to stewart.wayne.scott. Note that "MySSID" should be the name of the Hidden SSID.
Essentially you need to run the following code on your phone. At the moment there is no premade APK that does this, so it requires creating a program with the Android SDK, compiling it, and running it on the phone.
private WifiManager wifi = (WifiManager)getSystemService(service);
List<WifiConfiguration> config = wifi.getConfiguredNetworks();
for(int i = 0;i<config.size();i++) {
if(config.get(i).SSID.contentEquals("\"MySSID\"")) {
config.get(i).hiddenSSID = true;
wifi.updateNetwork(config.get(i));
wifi.saveConfiguration();
}
}
Note that I have not run the above code myself, and cannot vouch for it. If somebody generates such a program and is willing to share the full APK or code, there would be many grateful individuals.
0 件のコメント:
コメントを投稿