try root if adb install fail

This commit is contained in:
vvb2060 2020-09-08 23:29:22 +08:00 committed by John Wu
parent 30e45f863d
commit 49559ec0ec

View File

@ -93,7 +93,7 @@ adb_pm_install() {
local tmp=/data/local/tmp/patched.apk
cp -f "$1" $tmp
chmod 644 $tmp
su 2000 -c pm install $tmp
su 2000 -c pm install $tmp || pm install $tmp
local res=$?
rm -f $tmp
return $res