Compare commits

...

2 Commits

Author SHA1 Message Date
Xu Tianliang
b382a169aa
style:更改版本号 2022-01-19 01:08:21 +08:00
Xu Tianliang
335d6df3ab
fix:管理应用无法正确安装修复
某些ROM中即使将apk文件复制到/system/app目录下,pm命令也无法识别出应用被安装.
故判断应用安装并不会返回预想的'package:/system/...',而是毫无输出从而返回错误.
故增加判断条件以正确安装管理应用
2022-01-19 01:03:28 +08:00
2 changed files with 5 additions and 4 deletions

View File

@ -7,7 +7,6 @@ SKIPUNZIP=1
# prepare v2ray execute environment
ui_print "- Prepare V2Ray execute environment."
mkdir -p /data/v2ray
mkdir -p /data/v2ray/dnscrypt-proxy
mkdir -p /data/v2ray/run
mkdir -p $MODPATH/scripts
mkdir -p $MODPATH/system/bin
@ -45,8 +44,8 @@ rm -rf $MODPATH/module.prop
touch $MODPATH/module.prop
echo "id=v2ray" > $MODPATH/module.prop
echo "name=V2ray for Android" >> $MODPATH/module.prop
echo "version=4.44.0" >> $MODPATH/module.prop
echo "versionCode=20210801" >> $MODPATH/module.prop
echo "version=2.0.1" >> $MODPATH/module.prop
echo "versionCode=20220119" >> $MODPATH/module.prop
echo "author=ohnoku" >> $MODPATH/module.prop
echo "description=V2ray core with service scripts for Android" >> $MODPATH/module.prop

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