[FYT Android Head Units] surfer63:
@mariodantas : This is not only for you, but you might run into this issue as well.

Long explanation. You are warned ;). Short version ("management summary" :)) between the horizontal lines.

FYT delivers the 7862 "domestic" kernel and the "foreign" kernel.

The "domestic" kernel (latest 4 July 2023) comes without "Google stuff" as it is for internal China.

The "foreign" kernel (latest 17 June 2023) comes with Google stuff, but not as extensive as inside the kernels of the Mekede/Joying/Teyes firmwares.

And then the resellers like Mekede, Joying and T'eyes take this "foreign" kernel and add some more Google stuff and some other things.

Next to that they take the app layer from FYT, make sometimes small layout changes, and create the AllAppUpdate.bin (and in case of Teyes the elable.new.dat.br) to create a complete firmware.

As they need to test and recompile some apks from the app layer, that takes some time. So the FYT kernels are always newer than the reseller kernels/firmwares.

So when creating an MD-Edition kernel or an OK-Edition* kernel based on the "domestic" kernel or the "foreign" kernel, I copy in a lot of Google stuff. I resize the partition image (based on Marios scripts) and repackage everything. Then I try to flash them, always giving an error during flashing.

I now understand why MD-Editions or the new OK-Editions* fail if I base them on the 20230617 "domestic" or the "20230704 "foreign" kernel.

Every 6315_1.zip (and 6316_1.zip) comes with a "dynamic_partitions_op_list" containing the partitions to be created with their sizes.

The partitions are created and then they are filled with the contents of the partition image files (xxx.new.dat.br) inside the 6315_1.zip.

The system and product partition in this foreign kernel are smaller, and in the domestic kernel much smaller than those of the reseller kernels.

I drag in 100 MB into the foreign kernel and 800MB into the domestic kernel. So my partition images are resized and become much bigger.

If I do not increase the partition sizes in this "dynamic_partitions_op_list" file, the created partitions are too small to contain all the stuff I want to copy in during flashing.

So when using a FYT kernel instead of a "full" Mekede/Joying/Teyes kernel, those having big enough partition sizes, I need to make the FYT kernel partition sizes equal to those of the "full" reseller kernels, and then repackage.

=====================================================================================

FYT delivers the 7862 "domestic" kernel and the "foreign" kernel.

The "domestic" kernel (latest 4 July 2023) comes without "Google stuff" as it is for internal China.

The "foreign" kernel (latest 17 June 2023) comes with Google stuff, but not as extensive as inside the kernels of the Mekede/Joying/Teyes firmwares.

For that reason the FYT kernel partition sizes are (much) smaller. When creating an MD-Edition or OK-Edition*, you have to increase partition sizes inside the "dynamic_partitions_op_list".

======================================================================================

To be continued ... (somewhere this weekend)

*: The OK-kernel takes the optimizations that Mario made, but delivers it as an unrooted kernel. Not released yet.