Trigger secondary adbd only if we managed to disable first one

This commit is contained in:
Pierre-Hugues Husson 2019-07-17 20:11:56 +02:00
parent 5dc6a4573a
commit 1048ea4fd2

View File

@ -10,9 +10,10 @@ while read version;do
done done
if [ -d /sys/module/five ];then if [ -d /sys/module/five ];then
mount -o bind /system/phh/empty /sbin/adbd if mount -o bind /system/phh/empty /sbin/adbd;then
setprop sys.phh.five true setprop sys.phh.five true
else fi
else if [ -f /sbin/adbd ];then
mount -o bind /system/bin/adbd /sbin/adbd mount -o bind /system/bin/adbd /sbin/adbd
fi fi
if ( getprop ro.hardware | grep -qE '(kirin970|hi3660|hi6250|hi3670)' );then if ( getprop ro.hardware | grep -qE '(kirin970|hi3660|hi6250|hi3670)' );then