Compare commits
2 Commits
e21a127b19
...
b382a169aa
Author | SHA1 | Date | |
---|---|---|---|
|
b382a169aa | ||
|
335d6df3ab |
@ -7,7 +7,6 @@ SKIPUNZIP=1
|
|||||||
# prepare v2ray execute environment
|
# prepare v2ray execute environment
|
||||||
ui_print "- Prepare V2Ray execute environment."
|
ui_print "- Prepare V2Ray execute environment."
|
||||||
mkdir -p /data/v2ray
|
mkdir -p /data/v2ray
|
||||||
mkdir -p /data/v2ray/dnscrypt-proxy
|
|
||||||
mkdir -p /data/v2ray/run
|
mkdir -p /data/v2ray/run
|
||||||
mkdir -p $MODPATH/scripts
|
mkdir -p $MODPATH/scripts
|
||||||
mkdir -p $MODPATH/system/bin
|
mkdir -p $MODPATH/system/bin
|
||||||
@ -45,8 +44,8 @@ rm -rf $MODPATH/module.prop
|
|||||||
touch $MODPATH/module.prop
|
touch $MODPATH/module.prop
|
||||||
echo "id=v2ray" > $MODPATH/module.prop
|
echo "id=v2ray" > $MODPATH/module.prop
|
||||||
echo "name=V2ray for Android" >> $MODPATH/module.prop
|
echo "name=V2ray for Android" >> $MODPATH/module.prop
|
||||||
echo "version=4.44.0" >> $MODPATH/module.prop
|
echo "version=2.0.1" >> $MODPATH/module.prop
|
||||||
echo "versionCode=20210801" >> $MODPATH/module.prop
|
echo "versionCode=20220119" >> $MODPATH/module.prop
|
||||||
echo "author=ohnoku" >> $MODPATH/module.prop
|
echo "author=ohnoku" >> $MODPATH/module.prop
|
||||||
echo "description=V2ray core with service scripts for Android" >> $MODPATH/module.prop
|
echo "description=V2ray core with service scripts for Android" >> $MODPATH/module.prop
|
||||||
|
|
||||||
|
@ -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