summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-06-07 15:54:58 -0700
committerDianne Hackborn <hackbod@google.com>2010-06-07 17:30:57 -0700
commit8377fc0f36842d355dfb354c98fa3e86d61e0288 (patch)
treee34bd860856ffca9471d68e1baa2e4d91c1b02f3 /services/java
parentdf2e2eff9446c0220515fa7aab7857135e04e12e (diff)
downloadframeworks_base-8377fc0f36842d355dfb354c98fa3e86d61e0288.zip
frameworks_base-8377fc0f36842d355dfb354c98fa3e86d61e0288.tar.gz
frameworks_base-8377fc0f36842d355dfb354c98fa3e86d61e0288.tar.bz2
Fix issue #2749322: addPackageToPreferred throws SecurityException
Change-Id: I96cdc110fd9acca4b6c95d281e819bad1e4557f8
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/PackageManagerService.java8
1 files changed, 2 insertions, 6 deletions
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<PackageInfo> getPreferredPackages(int flags) {