Is it possible to get list of SSID's of networks around by using private API on iOS 7 Jailbroken device?
I know about MobileWiFi.framework that manages WiFi functionality on iOS. (It replaces the obsolete Apple80211 framework.)
Here is 4 years old answer how to use it: Accessing & Using the MobileWiFi.framework
I tried to use these methods on iOS 7, but have no luck.
In one of the comments of author of this solution I receive this answer:
scanNetworks
fails because that code is now 4 years old. As I describe in my answer, you have to use a new framework to get the equivalent functionality (and you have had to since at least iOS 5). If you are trying to do this with iOS 7, I would recommend posting a new question.
p.s.
It's not a duplicate of Get SSID's in range iOS 7 . I ask about Jailbreak method of these functionality.
UPD:
There is working code in the link above and in the creker's answer too. But it's needed to pass the sandbox restrictions. So, the right question is: Is there a way to do that with regular iOS app?
Here is what I use on iOS5-7
IPConfiguration
is not a fat binary. It contains only one architecture matching the device. Thus if you're planning on supporting arm64 devices you have to compile your code for arm64 also - 32-bit applications can't load 64-bit dylibs. armv7 and arm64 are enough for all modern devices.UPDATE
Unfortunatelly this code doesn't work in regular iOS apps even on jailbroken device. Jailbreak doesn't turn off the sandbox which is the reason the code doesn't work. For this code to work you need to place your application outside
/var/mobile/Applications
directory where sandbox restrictions aren't applied. It could be a daemon, a tweak or a GUI application inside/Applications
directory. Applications inside that directory doesn't have any restrictions by default and can access any private API.