iOS programatically setting up device in AP mode

2019-09-05 05:56发布

During the application lifecycle, how can device be put into Access Point mode?

Like turning on the Personal Hotspot.

And is it possible to assign SSID to that network during runtime?

1条回答
【Aperson】
2楼-- · 2019-09-05 06:46

There's no way to do the above with public API.

If you want to use private api 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

查看更多
登录 后发表回答