try root if adb install fail
This commit is contained in:
parent
30e45f863d
commit
49559ec0ec
@ -93,7 +93,7 @@ adb_pm_install() {
|
|||||||
local tmp=/data/local/tmp/patched.apk
|
local tmp=/data/local/tmp/patched.apk
|
||||||
cp -f "$1" $tmp
|
cp -f "$1" $tmp
|
||||||
chmod 644 $tmp
|
chmod 644 $tmp
|
||||||
su 2000 -c pm install $tmp
|
su 2000 -c pm install $tmp || pm install $tmp
|
||||||
local res=$?
|
local res=$?
|
||||||
rm -f $tmp
|
rm -f $tmp
|
||||||
return $res
|
return $res
|
||||||
|
Loading…
Reference in New Issue
Block a user