Example resize SUPER

Example resize SUPER

by @LeeGarChat

ok, i have three news.  bad, good, and in between.  

BAD (variant 1): The 1st option is extremely dangerous which can lead to a bootloop, for this method I can write a script but I will need a tester who can bring device out of the hard brick state.  and that is, flash the device through QTFL, or someone who is not afraid to pay money for using a service account, because in case of failure, you will need to pay money to restore the phone (like me with my xiaomi), with a full restoration of the partition layout, because you need to flash  ROW-PROGRAM.XML.Let me explain, the first option involves shifting all sections to a position lower, but standard methods do not allow you to simply shift a section, so you need to create a new one and write the top-level position into it, BUT, the problem is that the android kernel cannot dynamically load a new section and you need  reboot, THEREFORE, in case of incorrect process logic, some partitions can be erased, for example, recovery, or some other ones responsible for loading, and there will be a solid brick

EXAMPLE PROCESS (variant 1):

EXAMPLE PROCESS (variant 1):


Good(variant 2).  I can simply delete the SUPER section (not completely, but somehow disable it) and USERDATA, and then create a new super with an increased size in place of the USERDATA markup.  under these conditions, you lose on internal memory a size equal to the current SUPER + extension size, for example (-12gb) internal memory.  This option is safer and more versatile, because we do not affect vital sections, and simply create a temporary super that can be safely removed and everything returned to factory conditions.

EXAMPLE PROCESS (variant 2):

EXAMPLE PROCESS (variant 2):


Between(variant 3).I can make a script that will create an extra section next to USERDATA. This method implies a strict binding to my RO2RW script and subsequent projects, as changes will be made to fstab, so that THOSE SECTIONS that do not fit in SUPER are loaded from the EXTERNAL section prepared in advance by the script, it will also be very easy to return to the factory state.

EXAMPLE PROCESS (variant 3):

EXAMPLE PROCESS (variant 3):



Report Page