|
|||||||||
|
|||||||||
|
|||
|
About
I just recently started coding for the iPhone this weekend. I decided to make an application that would allow for easy access to the different running services for the phone such as Wifi, Bluetooth, EDGE, Calling, and SSH. Hence my first contribution, Services.app. Currently the Application only supports turning on/off Edge, Bluetooth, Wifi, and OpenSSH. Requirements In order for this to all work, your system must have BSD Subsystem installed or at least the BSD/Unix tools grep, launchctl, sh/zsh/some shell, and ifconfig. Installation Install through Installer.app, how simple could it be, or to do it manually; copy the unzipped Services.app to /Applications and chmod 755 as usual. If anyone has some suggestions for things that would also be nice to control from Services, let me know. Screenshot ![]() ![]() ![]() ![]() Download Services-0.6.7.zip What's Next in no particular order
Known Issues The following appears to be resolved now, let me know if there are still issues Turning on/off EDGE while turning Bluetooth on/off will sometimes lead to bluetooth being in a non-functioning state. This is signaled by the progress indicator never going away. Rebooting the phone is the only solution I know of so far. It looks like I need to come up with one on my own too because even Apple's bluetooth routines can't recover from it without a reboot. Changelog
Credits
Last edited by cehoffman; 10-03-2007 at 10:17 AM. |
|
|||
|
Good question, I probably should have mentioned this. It uses the programming interfaces offered by the Preferences framework and the BluetoothManager to enable and disable the edge/bluetooth services. I haven't figured out wifi yet, thats why it is disabled. SSH is done using launchctl load and unload the com.openssh.sshd plist.
I haven't choosen any license for the code yet, but it will be open source. I just want to clean up the code a little bit with some comments before I post it up. I might use googlecode for it. |
| Sponsored links Remove advertisements | |
|
|
|
|
|
|||
|
This one is based off of the OSX System Prefs icon....well, the Tiger one...Leopard's is like the iPhone's. Anywho:
![]() img is here: http://img507.imageshack.us/img507/8496/switcherzc2.png |
| Sponsored links Remove advertisements | |
|
|
|
|
|
|||
|
cehoffman:
could you please explian us how this activate/deactivate works? it change my APN to DISABLED, but when i enable it nothings happen, remains DISABLED. thnx |
| Sponsored links Remove advertisements | |
|
|
|
|
|
|||
|
Hmm, thats odd. There are some interfaces within the Preferences Framework called PSSystemConfiguration which give access to the preferences.plist. I use this to get the current apn and change it to DISABLED, I also then make a new key called apn-orignal that is supposed to be what the apn was originally set to. When you reactivate edge, it is supposed to lookup the apn-original key and replace the apn with your previous settings.
I tested this on my phone, but I haven't unlocked my phone yet. If you have unlocked your phone could you send me your /private/var/root/Library/Preferences/SystemConfiguration/preferences.plist when you have edge working, when you use my utility to turn it off, and when you use my utility to turn it back on in PM. This should help me figure out the problem. My guess is, if you go into Preferences and are able to look at the EDGE settings, it erases my apn-original key and thats why reactivating doesn't work. I'll try storing the key somewhere else and putting an update out soon. Last edited by cehoffman; 09-25-2007 at 06:59 AM. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.hackint0sh.org/f126/8177.htm
|
||||
| Posted By | For | Type | Date | |
| 簡易iPhone FAQ - iPhone 技術,Q&A及討論區 - PDA & PDA Phone - 香港討論區 discuss.com.hk - 一個香港只得一個香港討論區 | This thread | Refback | 01-14-2009 02:33 PM | |
|
|