summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2014-04-01 20:46:15 +0200
committerGerrit Code Review <gerrit2@gerrit>2014-04-01 20:46:15 +0200
commit1ce5e3369bec92b29e1bf0f7863ca50dbf744e40 (patch)
treee8170eb931e75dbff471dca29442f0676bced7c9
parentMerge "Allow disabling legacy properties" into android-4.4 (diff)
parentFix /data backup size if contains media subdirs (diff)
downloadandroid_bootable_recovery-1ce5e3369bec92b29e1bf0f7863ca50dbf744e40.tar
android_bootable_recovery-1ce5e3369bec92b29e1bf0f7863ca50dbf744e40.tar.gz
android_bootable_recovery-1ce5e3369bec92b29e1bf0f7863ca50dbf744e40.tar.bz2
android_bootable_recovery-1ce5e3369bec92b29e1bf0f7863ca50dbf744e40.tar.lz
android_bootable_recovery-1ce5e3369bec92b29e1bf0f7863ca50dbf744e40.tar.xz
android_bootable_recovery-1ce5e3369bec92b29e1bf0f7863ca50dbf744e40.tar.zst
android_bootable_recovery-1ce5e3369bec92b29e1bf0f7863ca50dbf744e40.zip
Diffstat (limited to '')
-rw-r--r--partition.cpp2
-rw-r--r--twrpDU.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/partition.cpp b/partition.cpp
index 640a280ef..1ae54f57e 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1822,9 +1822,7 @@ bool TWPartition::Update_Size(bool Display_Error) {
if (Has_Data_Media) {
if (Mount(Display_Error)) {
unsigned long long data_media_used, actual_data;
- du.add_relative_dir("media");
Used = du.Get_Folder_Size("/data");
- du.clear_relative_dir("media");
Backup_Size = Used;
int bak = (int)(Used / 1048576LLU);
int fre = (int)(Free / 1048576LLU);
diff --git a/twrpDU.cpp b/twrpDU.cpp
index 3047e2b15..38eb4e02a 100644
--- a/twrpDU.cpp
+++ b/twrpDU.cpp
@@ -38,6 +38,9 @@ twrpDU::twrpDU() {
add_relative_dir("..");
add_relative_dir("lost+found");
add_absolute_dir("/data/data/com.google.android.music/files");
+#ifdef RECOVERY_SDCARD_ON_DATA
+ add_absolute_dir("/data/media");
+#endif
parent = "";
}