From a87240c2270e83c3e865ffa1e56f79bfa74daffc Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Fri, 12 Feb 2010 14:12:34 -0800 Subject: [PATCH] Remove BACKUP_DATA permission and associated checks Any package can now participate in backup/restore, without requiring any manifest-declared permission. *Control* of the backup manager is still guarded by the BACKUP permission, which is signatureOrSystem. Change-Id: I116fcfcd4cd255e3c976330da1c4dea7d4faae9d --- core/res/AndroidManifest.xml | 7 ------- core/res/res/values/strings.xml | 5 ----- packages/SettingsProvider/AndroidManifest.xml | 2 -- .../android/server/BackupManagerService.java | 19 +------------------ tests/backup/AndroidManifest.xml | 1 - 5 files changed, 1 insertion(+), 33 deletions(-) diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index f5f5a27274dc7..8273dbf3877b8 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1161,13 +1161,6 @@ android:description="@string/permdesc_backup" android:protectionLevel="signatureOrSystem" /> - - - Allows the application to control the system\'s backup and restore mechanism. Not for use by normal applications. - - back up and restore the application\'s data - - Allows the application to participate in the system\'s backup and restore mechanism. - display unauthorized windows diff --git a/packages/SettingsProvider/AndroidManifest.xml b/packages/SettingsProvider/AndroidManifest.xml index a54251828e347..c92b9d7fb5647 100644 --- a/packages/SettingsProvider/AndroidManifest.xml +++ b/packages/SettingsProvider/AndroidManifest.xml @@ -2,8 +2,6 @@ package="com.android.providers.settings" android:sharedUserId="android.uid.system"> - - -