[Samsung Galaxy Nexus] bamtan2:
Update: Galaxy Nexus and Galaxy S2 both have problematic legacy partition sizes. I hope to help these communities collaborate on the common goal of future-proofing these classic devices. I have made a post on the S2 forum asking for input (http://xdaforums.com/galaxy-s2/deve...ogenmod-13-t3223808/post66069976#post66069976) and here are the results so far.

[MENTION=4141005]Lanchon[/MENTION]'s REPIT (https://github.com/Lanchon/REPIT) allows Galaxy S2 to easily resize their partitions with a simple flash from TWRP. Lanchon has offered to help port this tool to Galaxy Nexus. (http://xdaforums.com/showpost.php?p=66085248&postcount=3548) He has also reinforced our suspicion that Android itself does NOT use the /cache partition. I understand it is there for use by Google's default recovery and OTA upgrades, neither of which are relevant now.

When combined with the PIT work done by [MENTION=4544860]osm0sis[/MENTION] and [MENTION=4263181]mn.code[/MENTION] (http://xdaforums.com/showpost.php?p=64482777&postcount=28), I believe we have the ability to provide one standardized tool which all Galaxy Nexus can use to change their device partitions to the same standardized sizes. This way, all developers will know exactly what they're developing for. So rather than offering users different partition size choices, we'll just say: "here's a sensible way to future-proof this device. Everyone can use the same tool to make the exact same size change."

I propose we make /system exactly 1000MB (or 1000MiB...), and leave /cache with whatever's left. If Galaxy Nexus has 654MB /system and 432MB /cache, that means /cache would become 86MB. Does anyone object to this new smaller size?

[MENTION=2633638]Ziyan[/MENTION] I have a question about ROM flashing and keeping the partition size correct. In the past, @osm0sis has said we should use file-based flashing, not block-based. But [MENTION=6560258]the.gangster[/MENTION] told me the S2 ROMs are "flashed image-based but the flashscript resizes the partition immediately after that again, before the backuped stuff is restored." What is the right way to do this?

Proposed partition tool rollout to users:

Phase 1: We provide the same tool in all ROM threads, saying: "Use this optional tool to gain more /system space for bigger gapps packages. Eventually, new ROMs will require this change, because Android and gapps are both growing in size." This tool may be a redistribution of Lanchon's REPIT with fixed settings and support for all Galaxy Nexus variants.

Phase 2: Long term testing proves this modification to /cache is harmless. Developers build this functionality directly into new ROMs. Every ROM flash verifies the new 1000MB /system size, and updates the PIT if necessary.

I'm really thankful to all you developers, and your communities. I hope to help you collaborate and reach a consensus path forward, so the next 5 years of these classic devices are as bright as the last! :)

CC: [MENTION=4608636]bsmitty83[/MENTION] [MENTION=3390093]MWisBest[/MENTION] [MENTION=4022928]Carlos_Manuel[/MENTION] [MENTION=1048318]zzpianoman[/MENTION] [MENTION=6140342]Fenix46[/MENTION] [MENTION=5773568]theBlackEnd[/MENTION] [MENTION=4920940]sgspluss[/MENTION] [MENTION=2838735]aosp[/MENTION] [MENTION=4531957]musical_chairs[/MENTION]