1
我發現叫libimobiledevice一個開放源碼庫,似乎一個名爲restored_reboot功能,能做到這一點,那麼我寫了這樣的代碼:如何重啓越獄的iPhone上的PC
void reboot(){
restored_client_t client = NULL;
restored_error_t result = restored_client_new(device, &client, "mylabel");
if(result == 0){
result = restored_reboot(client);
if(result != 0)
fprintf(stderr, "failed to reboot: %d\n", result);
}else{
fprintf(stderr, "failed to create client, %d\n", result);
}
restored_client_free(client);
}
但失敗了,restored_reboot返回-3表示plist錯誤。
我已經知道如何重新啓動iPhone,只需使用root權限在iPhone上調用系統(「重新啓動」)即可。我想要做的是:在PC上啓動Windows可執行文件,使用USB電纜連接iPhone,單擊該Windows可執行文件窗口上的按鈕,然後重新啓動iPhone。 – moligaloo 2013-07-04 03:53:25