Closed TiceRex closed 6 years ago
Confirmed.
Will investigate as soon as I have some free time, in the meanwhile you can use Python 2.x.
Fixed (22cd4cef454b473cc0886ab0ed423d9df3f03867).
I tried using 2.7 on my android phone.I used sdat2img.py and unpacked system.new.DAT but couldn't repack it using img2sdat.py.
On Jan 5, 2018 8:10 PM, "Andrei Conache" notifications@github.com wrote:
Fixed (22cd4ce https://github.com/xpirt/img2sdat/commit/22cd4cef454b473cc0886ab0ed423d9df3f03867 ).
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xpirt/img2sdat/issues/10#issuecomment-355566484, or mute the thread https://github.com/notifications/unsubscribe-auth/AZluWd2WP1hx_6G6JnHtol-kv3NB_8Rhks5tHjDJgaJpZM4QHo_E .
The other issue (#9) has been closed, so I open a new one to report other errors caused by the differences between python 2 and 3.
The error above can be easily eliminated by changing blockimgdiff.py line 814 from
touched = array.array("B", "\0" * self.tgt.total_blocks)
totouched = array.array("B", b"\0" * self.tgt.total_blocks)
But then another error happens, while creating the new dat file: