diff options
-rw-r--r-- | root-vi7.sh | 7 |
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 | ||
29 | bckp() { | ||
30 | cp -p $1 $1.bckp | ||
31 | } | ||
32 | |||
33 | mkdir -p /system/app/SuperSU | 29 | mkdir -p /system/app/SuperSU |
34 | cp_chmod_chcon $SU_DIR/common/Superuser.apk /system/app/SuperSU/SuperSU.apk 0644 u:object_r:system_file:s0 | 30 | cp_chmod_chcon $SU_DIR/common/Superuser.apk /system/app/SuperSU/SuperSU.apk 0644 u:object_r:system_file:s0 |
35 | 31 | ||
36 | cp_chmod_chcon $SU_DIR/common/install-recovery.sh /system/etc/install-recovery.sh 0755 u:object_r:toolbox_exec:s0 | 32 | cp_chmod_chcon $SU_DIR/common/install-recovery.sh /system/etc/install-recovery.sh 0755 u:object_r:toolbox_exec:s0 |
37 | 33 | ||
38 | bckp /system/bin/install-recovery.sh | 34 | mv /system/bin/install-recovery.sh /system/bin/install-recovery-2.sh |
39 | rm /system/bin/install-recovery.sh | ||
40 | ln -s /system/etc/install-recovery.sh /system/bin/install-recovery.sh | 35 | ln -s /system/etc/install-recovery.sh /system/bin/install-recovery.sh |
41 | 36 | ||
42 | mkdir -p /system/bin/.ext | 37 | mkdir -p /system/bin/.ext |