Loading services/core/java/com/android/server/notification/NotificationManagerService.java +20 −14 Original line number Original line Diff line number Diff line Loading @@ -3615,6 +3615,9 @@ public class NotificationManagerService extends SystemService { public ArraySet<String> getGrantedPackages() { public ArraySet<String> getGrantedPackages() { final ArraySet<String> pkgs = new ArraySet<>(); final ArraySet<String> pkgs = new ArraySet<>(); long identity = Binder.clearCallingIdentity(); try { final String setting = Settings.Secure.getStringForUser( final String setting = Settings.Secure.getStringForUser( getContext().getContentResolver(), getContext().getContentResolver(), Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES, Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES, Loading @@ -3632,6 +3635,9 @@ public class NotificationManagerService extends SystemService { pkgs.add(token); pkgs.add(token); } } } } } finally { Binder.restoreCallingIdentity(identity); } return pkgs; return pkgs; } } Loading Loading
services/core/java/com/android/server/notification/NotificationManagerService.java +20 −14 Original line number Original line Diff line number Diff line Loading @@ -3615,6 +3615,9 @@ public class NotificationManagerService extends SystemService { public ArraySet<String> getGrantedPackages() { public ArraySet<String> getGrantedPackages() { final ArraySet<String> pkgs = new ArraySet<>(); final ArraySet<String> pkgs = new ArraySet<>(); long identity = Binder.clearCallingIdentity(); try { final String setting = Settings.Secure.getStringForUser( final String setting = Settings.Secure.getStringForUser( getContext().getContentResolver(), getContext().getContentResolver(), Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES, Settings.Secure.ENABLED_NOTIFICATION_POLICY_ACCESS_PACKAGES, Loading @@ -3632,6 +3635,9 @@ public class NotificationManagerService extends SystemService { pkgs.add(token); pkgs.add(token); } } } } } finally { Binder.restoreCallingIdentity(identity); } return pkgs; return pkgs; } } Loading