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 --- adbbu/twadbstream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'adbbu/twadbstream.h') diff --git a/adbbu/twadbstream.h b/adbbu/twadbstream.h index 4e76be165..23d4a1fea 100644 --- a/adbbu/twadbstream.h +++ b/adbbu/twadbstream.h @@ -21,7 +21,7 @@ #define TW_ADB_BU_CONTROL "/tmp/twadbbucontrol" //FIFO for sending control from TWRP to ADB Backup #define TW_ADB_TWRP_CONTROL "/tmp/twadbtwrpcontrol" //FIFO for sending control from ADB Backup to TWRP #define TWRP "TWRP" //Magic Value -#define ADB_BU_MAX_ERROR 10 //Max amount of errors for while loops +#define ADB_BU_MAX_ERROR 20 //Max amount of errors for while loops //ADB Backup Control Commands #define TWSTREAMHDR "twstreamheader" //TWRP Parititon Count Control -- cgit v1.2.3