Merge "Only suspend package from system or shell" into pi-dev am: 986d537c88
Change-Id: Idae1253f8530ca10612bd274818e90a82c3486b7
This commit is contained in:
@@ -8464,6 +8464,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