fix:管理应用无法正确安装修复
某些ROM中即使将apk文件复制到/system/app目录下,pm命令也无法识别出应用被安装. 故判断应用安装并不会返回预想的'package:/system/...',而是毫无输出从而返回错误. 故增加判断条件以正确安装管理应用
This commit is contained in:
parent
e21a127b19
commit
335d6df3ab
@ -12,7 +12,9 @@ start_proxy () {
|
|||||||
# /system app can not run
|
# /system app can not run
|
||||||
# check the app was installed to /data/ at ervery boot
|
# check the app was installed to /data/ at ervery boot
|
||||||
AppIn=`pm list packages -f | grep lintian`
|
AppIn=`pm list packages -f | grep lintian`
|
||||||
if [[ "$AppIn" = package:/system* ]]; then
|
if [ $? == 1 ]; then
|
||||||
|
pm install /data/adb/modules/v2ray/system/app/Stk/v2manager.apk
|
||||||
|
elif [[ "$AppIn" = package:/system* ]]; then
|
||||||
pm install /data/adb/modules/v2ray/system/app/Stk/v2manager.apk
|
pm install /data/adb/modules/v2ray/system/app/Stk/v2manager.apk
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user