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 --- partition.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'partition.cpp') diff --git a/partition.cpp b/partition.cpp index 8832909fe..f523ddf85 100644 --- a/partition.cpp +++ b/partition.cpp @@ -2947,3 +2947,11 @@ void TWPartition::Revert_Adopted() { LOGINFO("Revert_Adopted: no crypto support\n"); #endif } + +void TWPartition::Set_Backup_FileName(string fname) { + Backup_FileName = fname; +} + +string TWPartition::Get_Backup_Name() { + return Backup_Name; +} -- cgit v1.2.3