I am hesitant for two reasons:
1) Copyright/licensing. I've modified the script provided by @TheObcd I think, from the July 2022 release of https://github.com/debie-A320FL/OTA/releases. I haven't checked his licensing terms.
2) Risk of bricking anybody elses device. I just modified parts of an existing larger script. I don't know how it was originally generated. There are parts of the package that I don't understand and therefore haven't touched and cannot vouch for. I don't know if what I did may cause damage on other devices.
Here's what I did: I unpacked the zip, modified the line fetching the Vendor partition number adding a head -1 command between the grep and awk. Then I changed the if on vendor to a while and re-fetched the vendor partition within that loop after delete to clear out any duplicate vendor partitions. Finally, I also modified the sizes declared in the global variables at the top of the script. I can get you a diff later.
I also updated the META-INF script to report my changed target partition sizes. There's also a binary file in there. I don't know what that does.
Then I zipped it up again and ran it on the phone. Seemed to work.
1) Copyright/licensing. I've modified the script provided by @TheObcd I think, from the July 2022 release of https://github.com/debie-A320FL/OTA/releases. I haven't checked his licensing terms.
2) Risk of bricking anybody elses device. I just modified parts of an existing larger script. I don't know how it was originally generated. There are parts of the package that I don't understand and therefore haven't touched and cannot vouch for. I don't know if what I did may cause damage on other devices.
Here's what I did: I unpacked the zip, modified the line fetching the Vendor partition number adding a head -1 command between the grep and awk. Then I changed the if on vendor to a while and re-fetched the vendor partition within that loop after delete to clear out any duplicate vendor partitions. Finally, I also modified the sizes declared in the global variables at the top of the script. I can get you a diff later.
I also updated the META-INF script to report my changed target partition sizes. There's also a binary file in there. I don't know what that does.
Then I zipped it up again and ran it on the phone. Seemed to work.