summaryrefslogtreecommitdiffstats
path: root/adbbu
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2017-03-20 23:53:53 +0100
committerbigbiff bigbiff <bigbiff@teamw.in>2017-04-23 20:37:22 +0200
commitb5ecaad27a358a525d4f25282ca8aacd55bd4cae (patch)
treecb2291ab0060265e19f19562e8b3e28423b91626 /adbbu
parent3.1.0 (diff)
downloadandroid_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.tar
android_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.tar.gz
android_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.tar.bz2
android_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.tar.lz
android_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.tar.xz
android_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.tar.zst
android_bootable_recovery-b5ecaad27a358a525d4f25282ca8aacd55bd4cae.zip
Diffstat (limited to 'adbbu')
-rw-r--r--adbbu/twadbstream.h2
-rw-r--r--adbbu/twrpback.cpp2
2 files changed, 2 insertions, 2 deletions
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
diff --git a/adbbu/twrpback.cpp b/adbbu/twrpback.cpp
index 2a227ecb1..c59fd1cda 100644
--- a/adbbu/twrpback.cpp
+++ b/adbbu/twrpback.cpp
@@ -514,7 +514,6 @@ int twrpback::restore(void) {
return -1;
}
}
-
//If we should read from the adb stream, write commands and data to TWRP
if (read_from_adb) {
std::string cmdstr;
@@ -547,6 +546,7 @@ int twrpback::restore(void) {
close_restore_fds();
return -1;
}
+ read_from_adb = false;
}
else {
adblogwrite("ADB TWENDADB crc header doesn't match\n");