I am unable to install LOS 16 though, due to the system partition sizing, and don't really have any experience with using Parted or any other command line partition methods. Would you please share even just a brief step series on how you were able to resize the system partition so that it would allow you to flash LOS 16, then use the "TWRP resize" option to make the necessary room to go back and flash GApps and Magisk?
I don't know that I'd recommend monkeying with the partitions if aren't reasonably comfortable with command line tools in general... And just to say again - I'm not actually running Lineage 16. WiFi was entirely too unstable for me with the July 5th Lineage 16 ROM... So I'm actually running Lineage 14 on mine for now.
But basically, what I did was -
- Grabbed the parted binary from https://github.com/edk2-porting/parted-android
- Booted into twrp, adb pushed the parted binary to /tmp, chmod a+x'ed it
- "unit b" tells parted to display partition start/end/size down to the byte
- remove the system, cache and data partitions... I wanna say they were partitions 12, 13 and 14? Something like that. Been a week or so since I did it. (Looks like it's actually 13, 14 and 15 now that I grabbed the actual tablet to make the screenshot I attached below...)
- Recreate system, cache and data so that they have the same partition numbers they did previously but with their sizes adjusted... Basically this means figure out how much you wanna increase the size of "system" by and then add that same number to the end sector of system, to both the start and end sectors of the new cache and to the start sector of the new data partition... Keeping the start sector of system and the end sector of data the same as they were before the modification.
- Make sure you rename your newly created partitions to system, cache and userdata to match their original names...
- Basically, when you're done, you want the output of parted's "print" command to look exactly the same as at the start except for the "end" number of system, the "start" and "end" numbers of cache and the "start" number of data.
- After that you need to get the kernel to register the new partition table... The simplest way to do that is probably just to reboot the recovery.
Here's a screenshot showing the "end result"... This is what my suez' partition table currently looks like. Notice the size of my system partition is 3093299200... The original size of system was 1692925952.