Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
fix detecting enabledComponents following disabled in packages
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzySoft committed Sep 27, 2018
1 parent dd6f586 commit 175a9ee
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/packagedata.lib
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ getAppDetails() {
if [[ -z "$zeile" ]]; then
continue
fi
regex='^\s+enabledComponents:'
if [[ "${zeile}" =~ $regex ]]; then
P_BLOCK="enabled"
doProgress " +enabledComponents" 5
continue
fi
if [[ "${zeile:0:6}" = " " ]]; then
if [[ -z "${PK_DISABLED[$P_PKGNAME]}" ]]; then
PK_DISABLED[$P_PKGNAME]="${zeile:6}"
Expand All @@ -307,12 +313,6 @@ getAppDetails() {
doProgress " +perms" 5
continue
fi
regex='^\s+enabledComponents:'
if [[ "${zeile}" =~ $regex ]]; then
P_BLOCK="enabled"
doProgress " +enabledComponents" 5
continue
fi
if [[ "${zeile:0:11}" = " Package [" ]]; then # " Package [com.google.android.location] (40e85638):"
tmpstring="${zeile##*[}" # strip leading
P_PKGNAME="${tmpstring%%]*}" # strip trailing
Expand Down

0 comments on commit 175a9ee

Please sign in to comment.