From 8377fc0f36842d355dfb354c98fa3e86d61e0288 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Mon, 7 Jun 2010 15:54:58 -0700 Subject: Fix issue #2749322: addPackageToPreferred throws SecurityException Change-Id: I96cdc110fd9acca4b6c95d281e819bad1e4557f8 --- services/java/com/android/server/PackageManagerService.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'services/java') diff --git a/services/java/com/android/server/PackageManagerService.java b/services/java/com/android/server/PackageManagerService.java index 5ed19a2..49d2a76 100644 --- a/services/java/com/android/server/PackageManagerService.java +++ b/services/java/com/android/server/PackageManagerService.java @@ -6593,15 +6593,11 @@ class PackageManagerService extends IPackageManager.Stub { public void addPackageToPreferred(String packageName) { - mContext.enforceCallingOrSelfPermission( - android.Manifest.permission.SET_PREFERRED_APPLICATIONS, null); - Slog.w(TAG, "addPackageToPreferred: no longer implemented"); + Slog.w(TAG, "addPackageToPreferred: this is now a no-op"); } public void removePackageFromPreferred(String packageName) { - mContext.enforceCallingOrSelfPermission( - android.Manifest.permission.SET_PREFERRED_APPLICATIONS, null); - Slog.w(TAG, "removePackageFromPreferred: no longer implemented"); + Slog.w(TAG, "removePackageFromPreferred: this is now a no-op"); } public List getPreferredPackages(int flags) { -- cgit v1.1