Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbeeeefc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix double adding of special attribution usage" into sc-dev

parents 8d6a0cb6 f1876702
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -693,13 +693,14 @@ public class PermissionUsageHelper {
        for (int usageNum = 0; usageNum < rawUsages.size(); usageNum++) {
            OpUsage usage = rawUsages.get(usageNum);

            // If this attribution is a proxy, remove it
            if (toRemoveProxies.contains(usage.toPackageAttr())) {
                continue;
            }

            // If this attribution has a special attribution, do not remove it
            if (specialAttributions.contains(usage.toPackageAttr())) {
                deDuped.add(usage);
            }

            // If this attribution is a proxy, remove it
            if (toRemoveProxies.contains(usage.toPackageAttr())) {
                continue;
            }