Merge "Only suspend package from system or shell" into pi-dev

This commit is contained in:
Beverly Tai
2020-03-04 14:35:02 +00:00
committed by Android (Google) Code Review

View File

@@ -7101,6 +7101,7 @@ public class NotificationManagerService extends SystemService {
@VisibleForTesting
protected void simulatePackageSuspendBroadcast(boolean suspend, String pkg) {
checkCallerIsSystemOrShell();
// only use for testing: mimic receive broadcast that package is (un)suspended
// but does not actually (un)suspend the package
final Bundle extras = new Bundle();