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.

]]>

10 Commentsto I want to create reboot to recovery shortcut.

  1. Anonymous says:

    < ![CDATA[

    bindClass(“java.lang.Runtime“);


    Runtime.getRuntime().exec(“su -c reboot recovery”);



    should do the trick (requires superuser permissions)

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Lukas Morawietz Working perfectly after giving permission 😻

    ]]>

  3. Anonymous says:

    < ![CDATA[

    And how to give permission?

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Ruben Sukiasyan su asking on the first run.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Just had a spell error. Works perfectly! Thanks!

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Lukas is a boss 😉

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Lukas Morawietz And what if I want to have yes/no dialog box before confirming reboot? Is it possible? Thanks.

    ]]>

  8. Anonymous says:

    < ![CDATA[

    bindClass(“java.lang.Runtime”);


    if (confirm(“Reboot to Recovery?”)) {


    Runtime.getRuntime().exec(“su -c reboot recovery”);


    }

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Perfect! Thanks a lot.

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Thanks, Lukas. You are my hero.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *