Merge "Only suspend package from system or shell" into pi-dev
This commit is contained in:
@@ -7101,6 +7101,7 @@ public class NotificationManagerService extends SystemService {
|
|||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
protected void simulatePackageSuspendBroadcast(boolean suspend, String pkg) {
|
protected void simulatePackageSuspendBroadcast(boolean suspend, String pkg) {
|
||||||
|
checkCallerIsSystemOrShell();
|
||||||
// only use for testing: mimic receive broadcast that package is (un)suspended
|
// only use for testing: mimic receive broadcast that package is (un)suspended
|
||||||
// but does not actually (un)suspend the package
|
// but does not actually (un)suspend the package
|
||||||
final Bundle extras = new Bundle();
|
final Bundle extras = new Bundle();
|
||||||
|
|||||||
Reference in New Issue
Block a user