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
1 changed files with 4 additions and 3 deletions

View File

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