Skip to content

Commit

Permalink
Add a black and white list config. (#161)
Browse files Browse the repository at this point in the history
添加黑/名单包名配置文件
* 添加黑/名单包名配置文件获取

添加黑/名单包名配置文件获取,现在修改名单列表只需要编辑文件:package.list.ini
  • Loading branch information
moexiyuki authored Dec 4, 2024
1 parent e3b147a commit b15fa6a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
13 changes: 13 additions & 0 deletions box/package.list.ini
Original file line number Diff line number Diff line change
@@ -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
17 changes: 15 additions & 2 deletions box/settings.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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=()
Expand Down

0 comments on commit b15fa6a

Please sign in to comment.