Commit 49559ec0 authored by vvb2060's avatar vvb2060 Committed by John Wu

try root if adb install fail

parent 30e45f86
...@@ -93,7 +93,7 @@ adb_pm_install() { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment