Fix /data backup size if contains media subdirs
/data/*/media directories are mistakenly being excluded from the size calculation. Change to absolute dir exclude so that only /data/media is excluded. Change-Id: I6e97604d44e6ea2bdf7dfd8c68a2f90ba6d44415
This commit is contained in:
committed by
bigbiff bigbiff
parent
02a6453b75
commit
f77994d270
@@ -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);
|
||||
|
||||
@@ -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 = "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user