aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-08-14 23:10:37 +0200
committerPacien TRAN-GIRARD2015-08-14 23:10:37 +0200
commita12f6568bd358287bfff81ab0436142ae0da2067 (patch)
tree18d7b69a7d78b445bf7bbe234a337e18a15adf24
parent82efe23d9791b571a70bc2bb90d120cb510fc45c (diff)
downloadvi7-root-a12f6568bd358287bfff81ab0436142ae0da2067.tar.gz
Preserve previous install-recovery.sh script evaluation
-rw-r--r--root-vi7.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/root-vi7.sh b/root-vi7.sh
index 8bb5e61..abe18c4 100644
--- a/root-vi7.sh
+++ b/root-vi7.sh
@@ -26,17 +26,12 @@ cp_chmod_chcon() {
26 chcon $4 $2 26 chcon $4 $2
27} 27}
28 28
29bckp() {
30 cp -p $1 $1.bckp
31}
32
33mkdir -p /system/app/SuperSU 29mkdir -p /system/app/SuperSU
34cp_chmod_chcon $SU_DIR/common/Superuser.apk /system/app/SuperSU/SuperSU.apk 0644 u:object_r:system_file:s0 30cp_chmod_chcon $SU_DIR/common/Superuser.apk /system/app/SuperSU/SuperSU.apk 0644 u:object_r:system_file:s0
35 31
36cp_chmod_chcon $SU_DIR/common/install-recovery.sh /system/etc/install-recovery.sh 0755 u:object_r:toolbox_exec:s0 32cp_chmod_chcon $SU_DIR/common/install-recovery.sh /system/etc/install-recovery.sh 0755 u:object_r:toolbox_exec:s0
37 33
38bckp /system/bin/install-recovery.sh 34mv /system/bin/install-recovery.sh /system/bin/install-recovery-2.sh
39rm /system/bin/install-recovery.sh
40ln -s /system/etc/install-recovery.sh /system/bin/install-recovery.sh 35ln -s /system/etc/install-recovery.sh /system/bin/install-recovery.sh
41 36
42mkdir -p /system/bin/.ext 37mkdir -p /system/bin/.ext