Be cool in backup/restore of apps that can't touch external storage

Bug: 8241337
Change-Id: I23f6eeba8448b234a7b18ce50d2ced2ba54b4ebd
This commit is contained in:
Christopher Tate
2013-02-21 14:32:12 -08:00
parent 780294be50
commit 5cb5c337d5
2 changed files with 30 additions and 7 deletions

View File

@@ -3897,6 +3897,7 @@ class BackupManagerService extends IBackupManager.Stub {
&& !info.domain.equals(FullBackup.DATABASE_TREE_TOKEN)
&& !info.domain.equals(FullBackup.ROOT_TREE_TOKEN)
&& !info.domain.equals(FullBackup.SHAREDPREFS_TREE_TOKEN)
&& !info.domain.equals(FullBackup.MANAGED_EXTERNAL_TREE_TOKEN)
&& !info.domain.equals(FullBackup.OBB_TREE_TOKEN)
&& !info.domain.equals(FullBackup.CACHE_TREE_TOKEN)) {
throw new IOException("Unrecognized domain " + info.domain);