aboutsummaryrefslogtreecommitdiffstats
path: root/nandroid.c
diff options
context:
space:
mode:
authorKoushik Dutta <koushd@gmail.com>2011-07-13 10:34:23 -0700
committerKoushik Dutta <koushd@gmail.com>2011-07-13 10:34:23 -0700
commit94a4babac74cdd9cad34dbaa0f38997ed540cec7 (patch)
tree5c12221ee50e7877c1f23a1b511c8870f3f355ed /nandroid.c
parente87f9e695e041a2ad547de98e317a35332dc1c9e (diff)
downloadbootable_recovery-94a4babac74cdd9cad34dbaa0f38997ed540cec7.zip
bootable_recovery-94a4babac74cdd9cad34dbaa0f38997ed540cec7.tar.gz
bootable_recovery-94a4babac74cdd9cad34dbaa0f38997ed540cec7.tar.bz2
Google Music stores their music cache /sdcard/Android...
Can't back this up unless we start selectively excluding apps, which is gross. Most apps only store interstitial files here, so it is not a huge deal. Apps need to be able to work properly without an SD card. (Oops ROM Manager). Revert "backup and restore of /sdcard/Android (see getExternalFilesDir)" This reverts commit 50732e3c67454e174f008ba5443b21070f360a56. Conflicts: Android.mk Change-Id: I3978c5521b4f29c4d709c3bb6a8fa7e53678a79e
Diffstat (limited to 'nandroid.c')
-rw-r--r--nandroid.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/nandroid.c b/nandroid.c
index 8bb82f1..af97e86 100644
--- a/nandroid.c
+++ b/nandroid.c
@@ -277,16 +277,6 @@ int nandroid_backup(const char* backup_path)
return ret;
}
- if (0 != stat("/sdcard/Android", &s))
- {
- ui_print("No /sdcard/Android found. Skipping backup of application files on external storage.\n");
- }
- else
- {
- if (0 != (ret = nandroid_backup_partition_extended(backup_path, "/sdcard/Android", 0)))
- return ret;
- }
-
if (0 != (ret = nandroid_backup_partition_extended(backup_path, "/cache", 0)))
return ret;
@@ -524,9 +514,6 @@ int nandroid_restore(const char* backup_path, int restore_boot, int restore_syst
if (restore_data && 0 != (ret = nandroid_restore_partition_extended(backup_path, "/sdcard/.android_secure", 0)))
return ret;
- if (restore_data && 0 != (ret = nandroid_restore_partition_extended(backup_path, "/sdcard/Android", 0)))
- return ret;
-
if (restore_cache && 0 != (ret = nandroid_restore_partition_extended(backup_path, "/cache", 0)))
return ret;