am fe2c0864: am 0bc0a46a: am d1d9047d: Merge "Fix issue #2749322: addPackageToPreferred throws SecurityException" into froyo
This commit is contained in:
@@ -6629,15 +6629,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) {
|
||||
|
||||
Reference in New Issue
Block a user