Android Question Restat the system

lock255

Well-Known Member
Licensed User
Longtime User
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

lock255

Well-Known Member
Licensed User
Longtime User
I had already seen that thread, but I was stubborn with that library .. anyway it worked, thanks for the support.
 
Upvote 0

lock255

Well-Known Member
Licensed User
Longtime User
@thedesolatesoul, In my device when I press the button to shut off between, scrennshot, and offline, reboot ... I can not see the code to insert it through B4A?
 
Upvote 0

sirjo66

Well-Known Member
Licensed User
Longtime User
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

lock255

Well-Known Member
Licensed User
Longtime User
Upvote 0

ebasic

Member
Licensed User
Longtime User
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…