WiFi manager app that uses MobileWiFi.framework.
davidmurray / wifi Goto Github PK
View Code? Open in Web Editor NEWThe missing iOS WiFi manager.
License: GNU General Public License v3.0
The missing iOS WiFi manager.
License: GNU General Public License v3.0
Hi.
I'm trying to compile(with theos) the code which relates to retrieving the list of known networks. I've added the reverse engineered libraries. But unfortunately I'm getting the following errors:
How can I get around this issue?
p.s. My 'Entitlements.xml' is standing at the root of the directory which is copied from Cykey's 'Wi-Fi-scan' example project. Is something wrong with that?
Thanks
Hello.
I try to install your project. https://github.com/Cykey/wifi
But there is a first time, when I work with makefile in iOs project.
Can you help me, how to build this project?
I try to run make
.
but got this error:
git submodule update --init --recursive
Cloning into 'ios-reversed-headers'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Clone of '[email protected]:Cykey/ios-reversed-headers.git' into submodule path 'ios-reversed-headers' failed
make: *** [all] Error 1
The command
git clone --recursive https://github.com/Cykey/wifi.git
get the same error:
Fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Clone of '[email protected]:Cykey/ios-reversed-headers.git' into submodule path 'ios-reversed-headers' failed
make: *** [all] Error 1
Can you help me to fix it?
Hi,
I'm trying to build your app and test it but it crashes when I open it. The program entitlements has been added. I've tested it with iOS 7 and iOS 5 and in both of them it crashes.
By the way your code has a little problem. In file DMDetailViewController.m line 291
(there should be 2 end brackets I guess):
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if ([indexPath section] == 0 && [_network isCurrentNetwork]) {
[[DMNetworksManager sharedInstance] disassociate];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
Hi
I downloaded the latest files and tried to build it. I got this error message
$ make
/Users/test/wifi-master/theos/makefiles/targets/Darwin/iphone.mk:41: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for application WiFi...
Copying resource directories into the application wrapper...
Compiling src/DMDetailViewController.m...
Compiling src/DMInformationViewController.m...
Compiling src/DMNetwork.m...
Compiling src/DMNetworksManager.m...
cc1obj: warnings being treated as errors
src/DMNetworksManager.m: In function ‘-[DMNetworksManager removeNetwork:]’:
src/DMNetworksManager.m:159: warning: implicit declaration of function ‘WiFiManagerClientRemoveNetwork’
make[2]: *** [obj/src/DMNetworksManager.m.5505afcb.o] Error 1
make[1]: *** [internal-application-all_] Error 2
make: *** [WiFi.all.application.variables] Error 2
$
If i comment out the line 159. The app builds and installs on my device. Also this work only woth SDK 6.0 and fails under 6.1 (want to make sure i am using right versions)
Thanks
Hi
I am trying to develop an app that can scan ssids and connect to them. I am learning theos and looked on the web for help and found this great project. I downloaded the source and tried to install it on my jail breaked 3GS running 6.1.3. I have xcode with 7.0 SDKs.
I ran make package install and theos installed this app on my phone. But when i start this app it crashed immediately. I looked at the device log and found these lines. I also tried ldid /Application/WiFi.app/WiFi (suggested in previous post) it returned nothing
Could you please help what i am missing to get this working on the phone?
Device Logs
Nov 6 10:18:49 test-iPhone login[1682] : DEAD_PROCESS: 1682 ttys002
Nov 6 10:18:50 test-iPhone WiFi[1707] : MS:Notice: Installing: me.cykey.wifi WiFi
Nov 6 10:18:50 test-iPhone WiFi[1707] : MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
Nov 6 10:18:50 test-iPhone wifid[15] : WiFi:[405454730.664474]: kern_return_t _wifi_manager_open(mach_port_t, int, int, mach_port_t, mach_port_t *, audit_token_t) Client WiFi has no entitlement
Nov 6 10:18:50 test-iPhone WiFi[1707] : WiFi:[405454730.668074]: Failed to open connection to WiFi Manager kr=2
Nov 6 10:18:50 test-iPhone ReportCrash[1708] : MS:Notice: Installing: (null) ReportCrash
Nov 6 10:18:51 test-iPhone ReportCrash[1708] : Formulating crash report for process WiFi[1707]
Nov 6 10:18:51 test-iPhone com.apple.launchd1 : (UIKitApplication:me.cykey.wifi[0xb3da]) Job appears to have crashed: Segmentation fault: 11
Nov 6 10:18:51 test-iPhone backboardd[1635] : Application 'UIKitApplication:me.cykey.wifi[0xb3da]' exited abnormally with signal 11: Segmentation fault: 11
Nov 6 10:18:51 test-iPhone ReportCrash[1708] : libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Nov 6 10:18:51 test-iPhone ReportCrash[1708] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/WiFi_2013-11-06-101850_test-iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
hi, is there any "com.apple.wifi.***" that shows wifi's state? I found that after the wifi's association succeed, wifi icon would wait for seconds to show in the status bar...how do i know its truly time that everything is ready? wait for your answer...(poor english, sorry)
Hi All,
Advance thanks for your help..
i am really want to fix this in my project. Please please help me
1)My application will not go to Appstore, it will be Enterprice app.
2)I want to trigger wifi scan programatically, nothing else.
3)where i can find private framework "MobileWiFi.framework" in Xcode 6.1?
4)I have included "WiFiDeviceClient.h,WiFiNetwork.h,WiFiManager.h,MobileWiFi.h"
5)I have include Entitlement.plist same has downloaded from this project. But getting following error
"The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile. (0xE8008016)."
6)I need to jailbroke the device?
5) using following code
_manager = WiFiManagerClientCreate(kCFAllocatorDefault, 0);
CFArrayRef devices = WiFiManagerClientCopyDevices(_manager);
if (devices) {
_client = (WiFiDeviceClientRef)CFArrayGetValueAtIndex(devices, 0);
CFRetain(_client);
CFRelease(devices);
}
_networks = [[NSMutableArray alloc] init];
WiFiManagerClientScheduleWithRunLoop(_manager, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
WiFiDeviceClientScanAsync(_client, (CFDictionaryRef)[NSDictionary dictionary], DMScanCallback, NULL);
Thanks
Santhosh
i don't know how to compile this source on iOS8 and XCode(6.1.1)
my dev environment is..
Xcode: 6.1.1
iOS: 8.1
i installed below step..
Hi,
I just link mobile wifi framework to Xcode by dragging it into the "link binaries with libraries" box. At compile Xcode return this error:
ld: framework not found MobileWiFi
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Do you no why is it like that?
PS.1: Theos can link correctly to mobile wifi framework
PS.2: Thank you very much!
I'm trying the following:
WiFiManagerRef manager = WiFiManagerClientCreate(kCFAllocatorDefault, 0);
CFArrayRef networks = WiFiManagerClientCopyNetworks(manager);
NSLog(@"networks: %@", networks);
but networks
is null.
I am linking against iOS 8's MobileWiFi.framework and have copied the headers from your reversed-headers repo (not sure which iOS version those correspond to).
I would have used this wifi project, however without an Xcode project file I am pretty lost using it on a non-jailbroken device.
When the alert window pops up requesting credentials and i click on connect with out password the app will crash
Make a class is easy to use and use in the .ipa not the .deb , such as this class https://github.com/ipinak/iOS-WiFi/tree/master/iOS-WiFi. But it's not sopport at ios 7.
Thanks you !
Hi,
i have downloaded this full folder,
can you please tell me how to compile in this project in XCode, i can't find any project file in folder.
Thanks
Santhosh
Hi,
Can anybody confirm this WiFi app is working under iOS 8.1 update with Pangu JB??
I'm working from iOS 5 with iPConfiguration wifi functions but since 8.1 was released it stopped working. So I wonder if this solution works in the last iOS 8.1 version with Pangu JB.
Thank you vey much in advance.
Hi..Cykey!
I have already created one project With your Src files and then I have download MobileWiFi header files from following url.
https://github.com/Cykey/ios-reversed-headers/tree/master/MobileWiFi
While build the application Xcode showing some errors like following.
Can you, please tell me any frameworks are need to required to import?
And any Header path are required to set?
Can we get wifi data in only in jailbroken device or all devices?
I have checked MobileWifi Framework It was also there in following path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/PrivateFrameworks/MobileWiFi.framework
Thanks,
Ganga
hi, I downloaded a this your project, but how to compile all compiled not to come out, The Undefined symbols for architecture armv7:
"_WiFiManagerClientUnscheduleFromRunLoop", referenced from:
Hello,When I want to build this project,I try to run make
,but got this error
It seems the class method imageNamd:inBundle:
is undefined.
And Then I searched the development document of Apple.I've foudn this method
+ imageNamed:inBundle:compatibleWithTraitCollection:
But this method is released in iOS 8.0. So, I am wondering if this method is a private API? Or how can I build the project in another workaround. Hope you can see this issue, :)
Log's here: http://d.pr/f/Di7W
we need to jailbroke the device if i want to use this "com.apple.wifi.manager-access" in entitlements?
i am using Enterprise distribution still not able to install on device,if i remove the entitilement i can install.
Hey!
I have created a launch daemon and I am using your great classes for managing iPhone's wifi modules. There is a problem though, I am using this tutorial for creating the launch daemons:
https://www.chrisalvares.com/blog/7/creating-an-iphone-daemon-part-1/
When I scan for networks the scan callback function isn't called. Do you know why?
again thanks for your great work!
P.S.I think it's because runloops and these stuff but I know almost nothing about them!! :)
I test the method WiFiDeviceClientCopyCurrentNetwork, this method return the network connected or connecting, but how can I know this network returned is connected or connecting , you add a property isCurrentNetwork in the DMNetwork, but it doesn't always right.
What can the following APIs do ?
I don't understand for their names.
Can you tell me? please.
void WiFiManagerClientSetMISState(WiFiManagerRef manager, int state);
void WiFiManagerClientSetMisPassword(WiFiManagerRef manager, CFStringRef password);
void WiFiManagerClientSetMISDiscoveryState(WiFiManagerRef manager, int state);
int WiFiManagerClientGetMISState(WiFiManagerRef manager);
int WiFiManagerClientGetMISDiscoveryState(WiFiManagerRef manager);
void WiFiDeviceClientRegisterLQMCallback(WiFiDeviceClientRef device, WiFiDeviceClientCallback callback, const void *object);
void WiFiDeviceClientRegisterExtendedLinkCallback(WiFiDeviceClientRef device, WiFiDeviceClientCallback callback, const void *object);
void WiFiDeviceClientRegisterLinkCallback(WiFiDeviceClientRef device, WiFiDeviceClientLinkCallback callback, const void *object);
Hey, I don't jailbreak my device,Can I use the MobileWiFi.framework?
Need complete steps
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.