diff --git a/box/package.list.ini b/box/package.list.ini new file mode 100644 index 0000000..bdbb4dd --- /dev/null +++ b/box/package.list.ini @@ -0,0 +1,13 @@ +com.zhiliaoapp.musically +com.topjohnwu.magisk +mark.via +com.android.shell +xyz.blueskyweb.app +com.pikcloud.pikpak +com.termux +com.android.vending +com.google.android.gms +com.github.android +ceui.lisa.pixiv +com.google.android.gsf +com.android.chrome \ No newline at end of file diff --git a/box/settings.ini b/box/settings.ini index 1f4392a..98dd74c 100755 --- a/box/settings.ini +++ b/box/settings.ini @@ -1,5 +1,15 @@ #!/system/bin/sh +get_pkg_list(){ + p=0 + for pkg in $(cat $(dirname $settings)/package.list.ini) + do + pkgs[$p]=$pkg + ((p++)) + done + echo ${pkgs[@]} +} + if ! command -v busybox &> /dev/null; then export PATH="/data/adb/magisk:/data/adb/ksu/bin:/data/adb/ap/bin:$PATH:/system/bin" fi @@ -43,8 +53,11 @@ network_mode="tproxy" proxy_mode="blacklist" # list of package names to be proxied -# android Package Name, For example: ("com.android.captiveportallogin" "com.tencent.mm") -packages_list=() +# android Package Name, +# For example: ("com.android.captiveportallogin" "com.tencent.mm") +# Please edit the configuration file : package.list.ini + +packages_list=($(get_pkg_list)) # The gid in the list will be bypassed or proxied according to the proxy_mode configuration, and the gid can be arbitrarily specified by the busybox setuidgid command gid_list=()