fix:管理应用无法正确安装修复

某些ROM中即使将apk文件复制到/system/app目录下,pm命令也无法识别出应用被安装.
故判断应用安装并不会返回预想的'package:/system/...',而是毫无输出从而返回错误.
故增加判断条件以正确安装管理应用
This commit is contained in:
Xu Tianliang 2022-01-19 01:03:28 +08:00
parent e21a127b19
commit 335d6df3ab
No known key found for this signature in database
GPG Key ID: 7FF3F70CD1C04346

View File

@ -12,7 +12,9 @@ start_proxy () {
# /system app can not run
# check the app was installed to /data/ at ervery boot
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
fi