I want to create reboot to recovery shortcut.
I want to create reboot to recovery shortcut. I know i can use some 3rd party app for that, but I don’t want. So it is possible using script or something like that? Thanks.
]]>
« Hi! (Previous Post)
(Next Post) Actually I was purchased lighting launcher few months back, but only thing is I was changed my mobile so how to… »
< ![CDATA[
bindClass(“java.lang.Runtime“);
Runtime.getRuntime().exec(“su -c reboot recovery”);
should do the trick (requires superuser permissions)
]]>
< ![CDATA[
Lukas Morawietz Working perfectly after giving permission 😻
]]>
< ![CDATA[
And how to give permission?
]]>
< ![CDATA[
Ruben Sukiasyan su asking on the first run.
]]>
< ![CDATA[
Just had a spell error. Works perfectly! Thanks!
]]>
< ![CDATA[
Lukas is a boss 😉
]]>
< ![CDATA[
Lukas Morawietz And what if I want to have yes/no dialog box before confirming reboot? Is it possible? Thanks.
]]>
< ![CDATA[
bindClass(“java.lang.Runtime”);
if (confirm(“Reboot to Recovery?”)) {
Runtime.getRuntime().exec(“su -c reboot recovery”);
}
]]>
< ![CDATA[
Perfect! Thanks a lot.
]]>
< ![CDATA[
Thanks, Lukas. You are my hero.
]]>