This commit is contained in:
Yawasau
2023-10-13 23:12:03 +08:00
parent af4ad21703
commit 059ae3a1e8

View File

@@ -892,8 +892,8 @@ Release_data() {
if [[ -f /config/sdcardfs/$name2/appid ]]; then
G="$(cat "/config/sdcardfs/$name2/appid")"
else
#G="$(dumpsys package "$name2" 2>/dev/null | grep -w 'userId' | head -1)"
[[ $G = "" ]] && G="$(pm list packages -U --user "$user" | egrep -w "$name2" | cut -f3 -d ':')"
G="$(dumpsys package "$name2" 2>/dev/null | grep -w 'userId' | head -1)"
[[ $G = "" ]] && G="$(pm list packages -U --user "$user" | egrep -w "$name2" | cut -f3 -d ':' | awk '{print $1}')"
fi
G="$(echo "$G" | egrep -o '[0-9]+')"
if [[ $G != "" ]]; then