arifogel / twrpabx

Apache License 2.0
23 stars 7 forks source link

Error on extracting #4

Open JuniorJPDJ opened 6 years ago

JuniorJPDJ commented 6 years ago

juniorjpdj@Junior-x220T ~/mako % ../twrpabx/twrpabx backup.ab Input file: 'backup.ab' Read 512 bytes TW ADB Backup Header type: twstreamheader Number of partitions: 3 Read 512 bytes File Header type: twfilename File size: 2949647360 twfilehdr.size: 2077955929 twfilehdr.compressed: 0 Raw file name: /data/media/0/TWRP/BACKUPS/009070bc200dd9b3/2018-08-21--04-34-28_lineage_mako-userdebug_810_OPM2171026006C1/data.ext4.win File name: %sdata.ext4.win Read 512 bytes Data header type: twdatablock Read 1048064 bytes Wrote 1048064 bytes Remaining bytes in backup file: 2948598784 Read 512 bytes Data header type: twdatablock Read 1048064 bytes Wrote 1048064 bytes Remaining bytes in backup file: 2947550208 Read 512 bytes Data header type: twdatablock Read 1048064 bytes Wrote 1048064 bytes Remaining bytes in backup file: 2946501632 Read 512 bytes Data header type: twdatablock [...] Data header type: twdatablock Read 1048064 bytes Wrote 1048064 bytes Remaining bytes in backup file: 854592512 Read 512 bytes Data header type: twdatablock Read 1048064 bytes Wrote 1048064 bytes Remaining bytes in backup file: 853543936 Read 512 bytes Data header type: twdatablock Read 1048064 bytes Wrote 1048064 bytes Remaining bytes in backup file: 852495360 Read 512 bytes Data header type: twdatablock Read 1048064 bytes Wrote 1048064 bytes Remaining bytes in backup file: 851446784 Read 512 bytes Data header type: twdatablock Read 1048064 bytes Wrote 1048064 bytes Remaining bytes in backup file: 850398208 Read 512 bytes Data header type: md5trailer Read 1048064 bytes Wrote 1048064 bytes Remaining bytes in backup file: 849349632 Read 512 bytes Corrupt start of data header 1 juniorjpdj@Junior-x220T ~/mako %

I used TWRP 3.2.3-0 to create backup on mako device.

hrimhari commented 6 years ago

I have a quick fix for this problem. I'll create a pull request with it.

vasyugan commented 4 years ago

I have a quick fix for this problem. I'll create a pull request with it.

What is the fix? Could you name the file?

hrimhari commented 4 years ago

Check the pull request. https://github.com/arifogel/twrpabx/pull/5

vasyugan commented 4 years ago

Check the pull request. #5

Thank you! Merged your changes with upstream and to my pleasant surprise it has compiled and seems to be working! It would be great if someone put together an authoritative version with both fixes in place. Since I am woefully ignorant of c++ it should be you or @prudy