summaryrefslogtreecommitdiffstats
path: root/adbbu/twrpback.hpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2017-12-29 01:58:52 +0100
committerDees Troy <dees_troy@teamw.in>2018-05-25 18:42:16 +0200
commit38b83c1da45f0b4a7d166bee73dc7701794874c3 (patch)
treee02e655d5c8ff151d23a515e65ac201772088d12 /adbbu/twrpback.hpp
parentpartitionmanager: signal when Mount_To_Decrypt partitions are mounted (diff)
downloadandroid_bootable_recovery-38b83c1da45f0b4a7d166bee73dc7701794874c3.tar
android_bootable_recovery-38b83c1da45f0b4a7d166bee73dc7701794874c3.tar.gz
android_bootable_recovery-38b83c1da45f0b4a7d166bee73dc7701794874c3.tar.bz2
android_bootable_recovery-38b83c1da45f0b4a7d166bee73dc7701794874c3.tar.lz
android_bootable_recovery-38b83c1da45f0b4a7d166bee73dc7701794874c3.tar.xz
android_bootable_recovery-38b83c1da45f0b4a7d166bee73dc7701794874c3.tar.zst
android_bootable_recovery-38b83c1da45f0b4a7d166bee73dc7701794874c3.zip
Diffstat (limited to '')
-rw-r--r--adbbu/twrpback.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/adbbu/twrpback.hpp b/adbbu/twrpback.hpp
index c52da3ea7..edc162651 100644
--- a/adbbu/twrpback.hpp
+++ b/adbbu/twrpback.hpp
@@ -42,6 +42,7 @@ private:
int adb_control_bu_fd; // fd for twrp to bu communication
int adb_read_fd; // adb read data stream
int adb_write_fd; // adb write data stream
+ int debug_adb_fd; // fd to write debug tars
bool firstPart; // first partition in the stream
FILE *adbd_fp; // file pointer for adb stream
char cmd[512]; // store result of commands
@@ -54,6 +55,7 @@ private:
void close_backup_fds(); // close backup resources
void close_restore_fds(); // close restore resources
bool checkMD5Trailer(char adbReadStream[], uint64_t md5fnsize, twrpMD5* digest); // Check MD5 Trailer
+ void printErrMsg(std::string msg, int errNum); // print error msg to adb log
};
#endif // _TWRPBACK_HPP