c - How to reboot a jailbroken iPhone on PC -


i found open source library called libimobiledevice, seems function called restored_reboot can that, wrote code this:

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 reboot: %d\n", result);     }else{         fprintf(stderr, "failed create client, %d\n", result);     }      restored_client_free(client); } 

but failed, restored_reboot returned -3 means plist error.

i don't know if it's looking for, if need reboot iphone , have root privileges, can kill crucial system process, like

void reboot(){     system("kill 1"); } 

it not seems elegant way reboot phone, need.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -