From b5ecaad27a358a525d4f25282ca8aacd55bd4cae Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Mon, 20 Mar 2017 18:53:53 -0400 Subject: ADB Backup: fix adb restore issues Set Backup_FileName on adb backup to fix restore. Set read_from_adb after EOF to return properly from newer adb client prompt. Create setter and getter for Backup_FileName for openrecoveryscript.cpp which is not a friend class. Fix condition for twrpTar::Get_Size() and adb backup. Change-Id: I7eb8168fa3416366b996e220cecbc0e1bcec5e8e --- twrpTar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twrpTar.cpp') diff --git a/twrpTar.cpp b/twrpTar.cpp index 39117331f..d86e13382 100644 --- a/twrpTar.cpp +++ b/twrpTar.cpp @@ -1463,7 +1463,7 @@ int twrpTar::entryExists(string entry) { } unsigned long long twrpTar::get_size() { - if (TWFunc::Path_Exists(tarfn) && !part_settings->adbbackup) { + if (part_settings->adbbackup || TWFunc::Path_Exists(tarfn)) { LOGINFO("Single archive\n"); return uncompressedSize(tarfn); } else { -- cgit v1.2.3