Skip to content

Commit

Permalink
add com.android.printspooler to indicator exemptions
Browse files Browse the repository at this point in the history
Location usage indicator can get triggered when sharing a file to a printer.
  • Loading branch information
flawedworld authored and thestinger committed May 16, 2022
1 parent d00ebff commit 6f17aee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/java/android/permission/PermissionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public final class PermissionManager {
private static final String SYSTEM_PKG = "android";
private static final String BLUETOOTH_PKG = "com.android.bluetooth";
private static final String PHONE_SERVICES_PKG = "com.android.phone";
private static final String PRINT_SPOOLER_PKG = "com.android.printspooler";

/**
* Refuse to install package if groups of permissions are bad
Expand Down Expand Up @@ -944,6 +945,7 @@ public static Set<String> getIndicatorExemptedPackages(@NonNull Context context)
pkgNames.add(SYSTEM_PKG);
pkgNames.add(BLUETOOTH_PKG);
pkgNames.add(PHONE_SERVICES_PKG);
pkgNames.add(PRINT_SPOOLER_PKG);
for (int i = 0; i < INDICATOR_EXEMPTED_PACKAGES.length; i++) {
String exemptedPackage = INDICATOR_EXEMPTED_PACKAGES[i];
if (exemptedPackage != null) {
Expand Down

0 comments on commit 6f17aee

Please sign in to comment.