xpirt / img2sdat

Convert sparse EXT4 image to sparse Android data image
MIT License
156 stars 98 forks source link

Please update the img2sdat for Android 10 & Android 11 #19

Open ghost opened 3 years ago

ghost commented 3 years ago

I've tried to debug the flash errors & I've noticed that

img2sdat/common.py

is not making a compatible transfer.list for Android 10 & Android 11 devices. I always get some errors when I try to remove those lines...

erasing 93285 blocks package_extract_file from system_ext.transfer.list to memory took 00s.BLKDISCARD ioctl failed: Invalid argument failed to execute command [erase 8,88590,97792,98833,130561,131594,163328,164385,185006] new data receiver is still available after executing all commands. script aborted: E2001: Failed to flash system_ext_a partition. E2001: Failed to flash system_ext_a partition.error: 2001 Updater process ended with ERROR: 1 I:Install took 0 second(s). Error installing zip file '/sdcard/crDroidAndroid-11.0-20210614-mojito-v7.6.zip'

When I try to remove that line, I get another set of following errors:

writing 512 blocks of new data writing 512 blocks of new data writing 512 blocks of new data writing 512 blocks of new data writing 512 blocks of new data writing 1 blocks of new data writing 512 blocks of new data writing 457 blocks of new data lseek64 failed: Invalid argument Failed to write 23442 bytes. missing 1871872 bytes of new data failed to execute command [new 4,188006,188462,188513,188514] script aborted: E2001: Failed to flash system_ext_a partition. E2001: Failed to flash system_ext_a partition.error: 2001 cause: 103 Updater process ended with ERROR: 1 I:Install took 7 second(s). Error installing zip file '/sdcard/crDroidAndroid-11.0-20210611-mojito-v7.6.zip'

lseek64() couldn't able to parse the transfer.list

xtronics commented 1 year ago

Did you ever get this working? I'm trying to figure out what to use to build the zip-file to install a system.img where there are dynamic partitions -(SUPER)..