summaryrefslogtreecommitdiffstats
path: root/adbbu/twrpback.hpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2017-09-25 16:51:56 +0200
committerDees Troy <dees_troy@teamw.in>2017-11-27 16:43:20 +0100
commitadcb4d8cb7ee3ace4f0ee4a8ee8968b744db56b0 (patch)
tree0a1993c0cffa55a78c6674045c0b9083c22f2db8 /adbbu/twrpback.hpp
parentADB Backup: add ability for TWRP GUI to restore (diff)
downloadandroid_bootable_recovery-adcb4d8cb7ee3ace4f0ee4a8ee8968b744db56b0.tar
android_bootable_recovery-adcb4d8cb7ee3ace4f0ee4a8ee8968b744db56b0.tar.gz
android_bootable_recovery-adcb4d8cb7ee3ace4f0ee4a8ee8968b744db56b0.tar.bz2
android_bootable_recovery-adcb4d8cb7ee3ace4f0ee4a8ee8968b744db56b0.tar.lz
android_bootable_recovery-adcb4d8cb7ee3ace4f0ee4a8ee8968b744db56b0.tar.xz
android_bootable_recovery-adcb4d8cb7ee3ace4f0ee4a8ee8968b744db56b0.tar.zst
android_bootable_recovery-adcb4d8cb7ee3ace4f0ee4a8ee8968b744db56b0.zip
Diffstat (limited to 'adbbu/twrpback.hpp')
-rw-r--r--adbbu/twrpback.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/adbbu/twrpback.hpp b/adbbu/twrpback.hpp
index 1c6b09f15..c52da3ea7 100644
--- a/adbbu/twrpback.hpp
+++ b/adbbu/twrpback.hpp
@@ -18,14 +18,15 @@
#define _TWRPBACK_HPP
#include <fstream>
+#include "../twrpDigest/twrpMD5.hpp"
class twrpback {
public:
int adbd_fd; // adbd data stream
twrpback(void);
virtual ~twrpback(void);
- int backup(std::string command); // adb backup stream
- int restore(void); // adb restore stream
+ bool backup(std::string command); // adb backup stream
+ bool restore(void); // adb restore stream
void adblogwrite(std::string writemsg); // adb debugging log function
void createFifos(void); // create fifos needed for adb backup
void closeFifos(void); // close created fifos
@@ -52,6 +53,7 @@ private:
void adbloginit(void); // setup adb log stream file
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
};
#endif // _TWRPBACK_HPP