Skip to content

Commit

Permalink
Fix black/white lists on non-command line
Browse files Browse the repository at this point in the history
calculate uid instead of using pm to get uid
  • Loading branch information
CHIZI-0618 committed Apr 6, 2023
1 parent 8338411 commit 1af3ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion box/scripts/box.tproxy
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ find_packages_uid() {
for user_package in ${user_packages_list[@]} ; do
user=$(echo ${user_package} | awk -F ':' '{print $1}')
package=$(echo ${user_package} | awk -F ':' '{print $2}')
uid_list[${#uid_list[@]}]=$(pm list packages -U --user ${user} ${package} | awk -F 'uid:' '{print $2}')
uid_list[${#uid_list[@]}]=$((${user}*100000+$(cat /data/system/packages.list | grep ${package} | awk '{print $2}')))
done
}

Expand Down

0 comments on commit 1af3ee0

Please sign in to comment.