最近因為家裡換了遠x 4G當家用網路,而遠x 會在尖峰時刻鎖網路速度,只對 speedtest 不鎖,因此想說利用舊的 iPhone 6 Plus /iOS 12.5.5 來定時去連線一下 speedtest 讓他解鎖速度。
使用的軟體如下:
- xcode:用來產生 provision
- ios-app-signer:重簽 unc0ver.ipa 的工具
- unc0ver:jailbreak 的工具,我是用 7.0.0 版本。
- ideviceinstaller:將 ipa 安裝到手機上的工具。
- NewTerm 2:iOS 上的終端機工具介面
- curl:命令模式下的 web client
詳細怎麼 JB 我就不細說了,不過要注意的是如果 jb 失敗,可以重開機後再試。
另外,curl/wget 不知道為什麼在 iOS 上會預設使用 IPv6 的協定,造成卡住無法使用。
強制使用 IPv4 就沒問題了.
下面是我把 curl 做成服務,讓它每兩個小時執行一次
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>idv.scott.speedtest.plist</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/curl</string> | |
<string>-4</string> | |
<string>https://www.speedtest.net/api/ios-config.php</string> | |
</array> | |
<key>StartInterval</key> | |
<integer>120</integer> | |
</dict> | |
</plist> |
launchctl unload /Library/LaunchDaemons/idv.scott.speedtest.plist
launchctl load /Library/LaunchDaemons/idv.scott.speedtest.plist
查看狀態:
launchctl print system/idv.scott.speedtest.plist
launchctl list|grep idv.scott.speedtest.plist
launchctl print system/idv.scott.speedtest.plist
launchctl list|grep idv.scott.speedtest.plist
沒有留言:
張貼留言