Closed kamild1996 closed 3 years ago
Thanks for your experimentation. Indeed the tool modifies dynamic_partitions_op_list, but seems I forgot to include it previously. Just fixed it in V2.2.2 with commit https://github.com/XiaomiFirmwareUpdater/xiaomi-flashable-firmware-creator/commit/022ce9c4639a36929ea2c56d33b69586e3c8b23f
Cheers!
The firmware + vendor package generated by the tool comes with an untouched dynamic_partitions_op_list, and with the reference to that file removed from the updater-script. Such a file is troublesome to flash, as depending on the currently present MIUI ROM on the device, it either requires two attempts to flash, or constantly fails to flash. Recovery log file from the flashing process: https://gist.github.com/kamild1996/a0db92ba4b1704d6bca95c68b1adbb7f
After some experimentation I found out that:
assert(update_dynamic_partitions(package_extract_file("dynamic_partitions_op_list")));
line back to the updater-scriptallows the package to flash successfully regardless of the MIUI ROM currently present on the device.