I've lately been searching the cause for partition wipe failures from the updater-script, and I'm eyeing on functions like mtd_erase_blocks, and mtd_write_close. I would need to add some logging and recompile TWRP, but as I can't (read this
), could someone do that for me?
The strange thing is: it works on being called from the "wipe" tab, but not from an updater-script.
note: fails, as in: formats the partition "wrongly". Possibly to try looking at logging the gui/ functions and FormatFn(args...), to see where they differ, and what's causing the error.
edit: 21:13IST(25jul): update-binary seems to be the key to the fix... Lets see where this search leads.