airplane mode
-
iPhone ip address 自動更新 airplane モードをCommand lineで実行
[課題] iPhoneのGlobal ip addressを自動更新 [方針] 1.network deviceを再起動し更新 (成功) 2.airplane modeをprivate apiを利用し on / off (成功) [対策詳細1] Step 1)iPhone Jail break 2)open-ssh install 3)network restartメッソドを実装 4)アプリをルートアプリに昇格 1) iPhone Jail break – 7.1.x – iTunesがインストールされているかを確認すること http://tools4hack.santalab.me/how-to-ios71-ios711-untethered-jailbreak-pangu.html 2)-open-sshインストール cydiaよりインストール 3)network refresh method 3-1)ダメな方法 [参考URL] http://www.sinfuliphone.com/showthread.php?t=2144 network commandをインストールしrefreshする方法はwifiは更新できるが 3G/4G回線は更新できなかった。 3-2)成功した方法 system(“/bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.CommCenter.plist”); system(“/bin/launchctl load -w /System/Library/LaunchDaemons/com.apple.CommCenter.plist”); CommCenter自体をリロードすることでネットワークの更新に成功 4)アプリをルートアプリに昇格…