Add a black and white list config. (#161)
添加黑/名单包名配置文件 * 添加黑/名单包名配置文件获取 添加黑/名单包名配置文件获取,现在修改名单列表只需要编辑文件:package.list.ini
This commit is contained in:
13
box/package.list.ini
Normal file
13
box/package.list.ini
Normal file
@@ -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
|
||||
@@ -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=()
|
||||
|
||||
Reference in New Issue
Block a user