Skip to content

Commit

Permalink
Added support for binary update with TWRP
Browse files Browse the repository at this point in the history
  • Loading branch information
x3rAx committed Dec 10, 2013
1 parent a5bb68f commit 6e5448e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Superuser/src/com/koushikdutta/superuser/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ public void run() {
String.format("cat %s > /cache/Superuser.apk\n", getPackageCodePath()) +
"mkdir /cache/recovery\n" +
"echo '--update_package=CACHE:superuser.zip' > /cache/recovery/command\n" +
"echo 'install /cache/superuser.zip' > /cache/recovery/openrecoveryscript\n" +
"chmod 644 /cache/superuser.zip\n" +
"chmod 644 /cache/recovery/command\n" +
"chmod 644 /cache/recovery/openrecoveryscript\n" +
"sync\n" +
String.format("chmod 755 %s\n", getFileStreamPath("reboot").getAbsolutePath()) +
"reboot recovery\n";
Expand Down

1 comment on commit 6e5448e

@gopgap
Copy link

@gopgap gopgap commented on 6e5448e Apr 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ฃฃ

Please sign in to comment.