wifi

How to switch between wi-fi networks at runtime (programmatically) in iPhone app

让人想犯罪 __ 提交于 2019-12-02 06:46:06
问题 Is it possible to switch between WiFi networks in an iPhone App programmatically? At time of app execution if one network goes down but that is still connected and I want to switch to another wi-fi network. Is this possible? 回答1: There is no iOS API for this, but there can be some possible solutions, like make it available on Cydia for jailbroken devices. AirServer just did this. 回答2: Your iPhone app shouldn't manage wifi networks. If it does, it won't get approved by Apple to be put in the

How to fetch the list of near by wifi networks and able to connect to them from our App in ios (Using private API for enterprise App)?

a 夏天 提交于 2019-12-02 06:42:38
I want to fetch the list of near by wifi networks and able to connect to them from our App in ios, and my Application is Enterprise App so even private api's is also fine. Stuck this issue since 2 weeks, please provide me some references.. What you require will only work on JailBroken devices, the blog(blog.guvenergokce.com/iphone-wireless-scanner-ios5/170) which @Ckouta referred also has one comment from the Blog Admin, I’m assuming that your device is already jailbroken (otherwise not possible) You shall create release build of sample app and upload release build in to /Applications folder.

Objective-C: NSCommand “airport -s” returning empty

做~自己de王妃 提交于 2019-12-02 05:19:42
I'm trying to run airport command to scan my wireless networks. Right now, the approach is to use NSTask. I'm running it as follow: NSString *command = [NSString stringWithFormat:@"/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s"]; NSTask *task = [[NSTask alloc] init]; [task setLaunchPath:@"/bin/sh"]; NSArray *args = [NSArray arrayWithObjects:@"-c", command, nil]; [task setArguments: args]; NSPipe *pipe = [NSPipe pipe]; [task setStandardOutput: pipe]; [task launch]; [task waitUntilExit]; NSData *data = [[pipe fileHandleForReading]

Can't set “WifiConfiguration” when enabling wifi-hotspot using “setWifiApEnabled”

大兔子大兔子 提交于 2019-12-02 01:21:34
I'm trying to set my Android device to be an Access-Point using the code I've seen here before: WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiConfiguration netConfig = new WifiConfiguration(); netConfig.SSID = "MyAccessPoint"; Method method = wifi.getClass().getMethod("setWifiApEnabled", WifiConfiguration.class, boolean.class); method.invoke(wifi, netConfig, true); now, I managed to turning it on but without the SSID which I set in WifiConfiguration. This is driving me crazy. Anyone? bbodenmiller See how I got this working at Android 2.3 wifi hotspot API . Before

How to switch between wi-fi networks at runtime (programmatically) in iPhone app

三世轮回 提交于 2019-12-02 00:13:57
Is it possible to switch between WiFi networks in an iPhone App programmatically? At time of app execution if one network goes down but that is still connected and I want to switch to another wi-fi network. Is this possible? rishi There is no iOS API for this, but there can be some possible solutions, like make it available on Cydia for jailbroken devices. AirServer just did this. blake305 Your iPhone app shouldn't manage wifi networks. If it does, it won't get approved by Apple to be put in the App Store. The iPhone itself manages wifi connections, not a third-party app. rajagp If you are

Android: How to create EAP wifi configuration programmatically?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 22:24:29
I know how to create Open/WEP/PSK/PSK2 configuration programmatically. ex. WifiConfiguration conf = new WifiConfiguration(); conf.SSID = "ssid"; conf.preSharedKey = "\"password\""; conf.status = WifiConfiguration.Status.ENABLED; conf.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN); conf.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP40); conf.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.WEP104); conf.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.TKIP); conf.allowedGroupCiphers.set(WifiConfiguration.GroupCipher.CCMP); conf.allowedKeyManagement.set

How to use Scapy to determine Wireless Encryption Type?

删除回忆录丶 提交于 2019-12-01 21:34:05
问题 I am doing a Security Research on Wireless networks which involves coding a small tool that scans for Wifi Access points in the vicinity. Based on the Encryption type found it goes on with some other security tests. So far I have python code that uses Scapy to enumerate different access points and whether they have Encryption Enabled (Enc= Y or Enc=N). The code for this is: def sniffAP(p): if ( (p.haslayer(Dot11Beacon) or p.haslayer(Dot11ProbeResp)) and not aps.has_key(p[Dot11].addr3)): ssid

iOS: how to query WiFi state

百般思念 提交于 2019-12-01 21:05:13
Is it possible to query WiFi state (enabled/disabled) on iOS programmatically? The query should return true when WiFi is enabled and device is not connected to any network. EDIT: I am aware of the functionality provided by Reachability class and as far as I understand it does not recognize enabled but not connected state of WIFI. I.e. the following code will return NetworkStatus NotReachable , which is not what I need. Reachability* r = [Reachability reachabilityForLocalWiFi]; NetworkStatus ns = [r currentReachabilityStatus]; Disclaimer: The following solution is not robust and there is no

Missing method in android.net.wifi.WifiManager

时光怂恿深爱的人放手 提交于 2019-12-01 21:01:09
问题 On the site androidjavadoc.com, a method startScanActive is listed in the class WifiManager that makes it possible to perform an active wi-fi scan. It has been discussed here recently, too. Nevertheless, when I try to use that method in Eclipse, it is not found (undefined). startScan is. I tried that with all android.jar versions coming with the Android SDK (from 2.3 to 3.1). Does the function exist? How can I get access to it? Thanks a lot 回答1: As I mentioned, look at the official

Missing method in android.net.wifi.WifiManager

萝らか妹 提交于 2019-12-01 19:02:19
On the site androidjavadoc.com , a method startScanActive is listed in the class WifiManager that makes it possible to perform an active wi-fi scan. It has been discussed here recently, too. Nevertheless, when I try to use that method in Eclipse, it is not found (undefined). startScan is. I tried that with all android.jar versions coming with the Android SDK (from 2.3 to 3.1). Does the function exist? How can I get access to it? Thanks a lot As I mentioned, look at the official documentation . It's not there. As such, it's not part of the public API, and you should not call it. Even if it's