且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iOS以编程方式在AP模式下设置设备

更新时间:2023-12-04 16:48:34

无法使用公共API进行上述操作.

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

如果要使用私有api,则首选项"文件夹中将包含一个文件,以及com.apple.SpringBoard.plist:

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 在该文件中,您将需要为键状态设置1023以启用网络共享功能.要禁用此功能,您需要将键状态设置为1022.

/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