Hi everyone, and thank you in advance.
Hi everyone, and thank you in advance. I’m new to scripting and i need to get or develop something very simple, a shutdown-reboot dialog that works without root permissions. ¿Can somebody help me out on this please?
]]>
< ![CDATA[
Probably impossible without root for security reasons.
]]>
< ![CDATA[
Yes, from my understanding without root permissions you will not be able to do something like this. I think it was possible with older versions of Android but nothing recent.
]]>
< ![CDATA[
Or with the right permission…
There is this:
http://developer.android.com/reference/android/os/PowerManager.html#reboot(java.lang.String)
And this method can be called from script, but the launcher obviously don’t have the required REBOOT permission.
However there is a trick to add permissions to the launcher but this is something “unofficial” at the moment (although it works perfectly). Let me know when your script is ready or if you need further assistance and I’ll prepare the thing for the permission.
]]>
< ![CDATA[
Woah!
]]>
< ![CDATA[
Oh wow… You could do some cool shit with that.. Yea I really need to learn script now lol
]]>
< ![CDATA[
What’s happening with this script? Sounded like a sweet idea to me.
]]>