taamarin / box_for_magisk

Transparent Proxy for Android(root)
GNU General Public License v3.0
1.31k stars 131 forks source link

双开的应用无法使用黑白名单 #121

Open maxfun0 opened 5 months ago

maxfun0 commented 5 months ago

tproxy模式开启黑白名单,双开的应用无法生效,box4magisk可以添加双开的应用到黑白名单,希望能够支持

LIghtJUNction commented 5 months ago

需要去配置文件里面改,加上 -0,999,999是双开用户的

maxfun0 commented 5 months ago

就是加了无效啊,难道格式和box4magisk不一样?

kxzxxx commented 3 months ago

find_packages_uid() { echo -n "" > "${uid_list}" for package in "${packages_list[@]}"; do busybox awk -v p="${package}" '$1~p{print $2}' "${system_packages_file}" >> "${uid_list}" done for package_999 in "${packages_list_999[@]}"; do busybox awk -v p="${package_999}" '$1~p{print $2}' "${system_packages_file}" | while read line ; do if [[ -n "${line}" ]]; then uid999=$((line + 99900000)) echo $uid999 >> "${uid_list}" fi done done busybox sort "${uid_list}"|busybox uniq|busybox tail -n +2 > /data/adb/box/run/test_uid.txt busybox sort -r /data/adb/box/run/test_uid.txt -o "${uid_list}" rm /data/adb/box/run/test_uid.txt }

替换box.iptables里边的函数 在settings.ini里加package_999