开发者

Private API for Tethering on iPad

开发者 https://www.devze.com 2023-02-04 01:44 出处:网络
Is there a private API for enabling tethering in an iPad app? Since the iPhone supports tethering under some contracts, the existen开发者_如何学Goce of an API in the iOS is obvious…There is a file lo

Is there a private API for enabling tethering in an iPad app? Since the iPhone supports tethering under some contracts, the existen开发者_如何学Goce of an API in the iOS is obvious…


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


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.


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消