HaiSi(海思)\固件默认uroot

148 阅读1分钟

diff --git a/preinstall.sh b/preinstall.sh
index 42e597e..8ed88d7 100755
--- a/preinstall.sh
+++ b/preinstall.sh
@@ -22,7 +22,7 @@ fi
if [ ! -e $MARK ]; then
touch $LOGTEXT
echo "booting the first time, so pre-install some APKs." >> /data/local/log.txt
-
+setprop persist.service.root 0
settings put system time_12_24 12
settings put secure icon_blacklist battery
#settings put secure accessibility_large_pointer_icon 1
@@ -52,6 +52,7 @@ echo "OK, vendor installation complete." >> /data/local/log.txt

busybox find $PKGS2 -name "*\.apk" -exec sh /system/bin/pm install -r -g {} \;

+setprop persist.deny.apkInstall true
echo "OK, system installation complete." >> /data/local/log.txt
touch $MARK
fi