1

Is there a private API for enabling tethering in an iPad app? Since the iPhone supports tethering under some contracts, the existence of an API in the iOS is obvious…

  • possible duplicate of [Toggle iPhone tethering by code](http://stackoverflow.com/questions/2440030/toggle-iphone-tethering-by-code) – Brad Larson Jan 12 '11 at 16:55

3 Answers3

5

There is a file located in the Preferences folder, along with the com.apple.SpringBoard.plist:

/var/mobile/Library/Preferences/com.apple.MobileInternetSharing.plist

In that file, you will want to set 1023 for key State to enable the Tethering feature. To disable the feature, you will want to set 1022 for key State.

This action is only possible on a jailbroken device

WrightsCS
  • 50,551
  • 22
  • 134
  • 186
  • Do you know, does the mobile carrier **also** need to enable tethering (via the subscriber's data plan, for example), or does calling the carrier and adding something to your plan simply change this plist value? – Nate Jan 09 '13 at 05:08
  • @WrightsCS I have jailbroken my device. Also have followed [steps to give root access to the app](http://stackoverflow.com/questions/7841344/gaining-root-permissions-on-ios-for-nsfilemanager-jailbreak/8796556#8796556) to be able to access this file. Still I can't access it. The application gives **Permissions denied** error when in not `Applications/` folder. If I put it in `Applications/` folder then it crashes on launch. – Yogi Apr 14 '17 at 10:37
  • @Yogi this was 6 years ago. Much has changed since. ¯\_(ツ)_/¯ – WrightsCS Apr 14 '17 at 17:17
  • @WrightsCS: Hmm..Understandable...Do you know any way in which we can accomplish this now? – Yogi Apr 17 '17 at 04:46
1

I'm not aware of a private tethering API.

If all you want to do is have your own private WIFI hotspot, and you're an iPhone developer, then you can download/build/install iProxy: https://github.com/tcurdt/iProxy/wiki/. Not quite tethering but close enough for most needs.

TomSwift
  • 39,369
  • 12
  • 121
  • 149
0

I would think anything dealing with tethering would be handled by the OS, and exposed only in the Settings app. What sort of API functionality would you expect for that kind of OS-level feature?

macserv
  • 3,546
  • 1
  • 26
  • 36