Choose system version: 4
Traceback (most recent call last):
File "./img2sdat.py", line 89, in
main(sys.argv)
File "./img2sdat.py", line 79, in main
image = sparse_img.SparseImage(INPUT_IMAGE, tempfile.mkstemp()[1], '0')
File "/home/123/Desktop/unpack/pack/sparse_img.py", line 52, in init
raise ValueError("Magic should be 0xED26FF3A but is 0x%08X" % (magic,))
ValueError: Magic should be 0xED26FF3A but is 0x00000000
But this system.img is not corrupted(can be mounted) and it was generated by sdat2img.py which is your work. It was just extracted from lineage-14.1's system.new.dat and has nothing special things like encryption or something.
Why this 'magic value' thing happens?
./img2sdat.py system.img img2sdat binary - version: 1.6
Choose system version: 4 Traceback (most recent call last): File "./img2sdat.py", line 89, in
main(sys.argv)
File "./img2sdat.py", line 79, in main
image = sparse_img.SparseImage(INPUT_IMAGE, tempfile.mkstemp()[1], '0')
File "/home/123/Desktop/unpack/pack/sparse_img.py", line 52, in init
raise ValueError("Magic should be 0xED26FF3A but is 0x%08X" % (magic,))
ValueError: Magic should be 0xED26FF3A but is 0x00000000
But this system.img is not corrupted(can be mounted) and it was generated by sdat2img.py which is your work. It was just extracted from lineage-14.1's system.new.dat and has nothing special things like encryption or something. Why this 'magic value' thing happens?