Android Question Restat the system

Maybe you're right, in my case a reboot is the solution that I need, I have seen the documentation ... but I can not properly write the instruction to reboot. Would you be so kind as to post the code I need?
 
Upvote 0
I had already seen that thread, but I was stubborn with that library .. anyway it worked, thanks for the support.
 
Upvote 0
You need to be rooted for it to work.

How can I reboot a phone "no rooted" ???
Is it possible ??

If I try to use OSlibrary and Reboot command, the error is:
java.lang.SecurityException: Neither user 10138 nor current process has android.permission.REBOOT.

I have add
AddPermission(android.permission.REBOOT)
to Manifest, but the error is the same :(

Sergio
 
Upvote 0
Upvote 0
If you're rooted you can add a reboot (from busybox let's say) and issue "reboot" command.
If you're rooted and want to add it to the poweroff menu(where the screenshot it etc..) then either you have to decompile your APM or use xposed framework to add it.
 
Upvote 0
Back
Top