[Nexus 7 (2013) Android Development] ipdev:
Hi all. :)

Sorry for a bit of a long post but... 🙃

The stock partition table of Nexus 7 2013 (flo/deb) has 30 partitions.

The only difference between all 12 variants is the last sector of the device.

This only affects the end of userdata (partition 30).

Stock partition of a Hynix 16G model for example.

[ PasteBin ] - Link

Normally the partitions would be back-to-back maybe a small free space here and/or there.

I often wondered why there was so much unallocated space on this device?

A few years ago, Lanchon pointed out to me why.

[ GitHub ] - Link

Google did this to try and prevent what eventually happened.

[ 9to5google ] - Link

--

As the years progressed, the need for a large cache partition became less and less.

The need for a larger system partition became more and more.

Since we can not just create space, we have to take it away from another partition.

Partition 22 is system and 23 is cache.

Together they are 1400M of space.

If we remove both partitions we have 1400M of unallocated space to use.

We create a 16M cache partition (23) and use the remaining 1384M to create the system partition (22).

[A nice bump up from 840M 🙃]

This is what the sysrepart scripts did with different values.

--

REPIT will only work on devices that still use the stock partition layout.

This means the device has 30 partitions and they are still in the same order.

It does not matter what size the partitions are currently.

REPIT partition of a Toshiba 16G model for example.

[ PasteBin ] - Link

If you are getting an error about having 31 partitions.

You added a partition to the partition table.

Most likely you used Clamor's script or k23m's flox script in the past.

[The flox builds require a 1.5G system partition and a separate vendor partition.]

A new REPIT could be ported for use with 31 partition devices but, currently there is no need.

---

Years ago, Clamor made partition scripts for a handful of older Nexus devices.

[REPARTITION] Nexus 7 (2013) Repartition [FLO/DEB] [16GB/32GB] [UA TWRP] - Link

The goal was to bring them more inline with current devices.

The system partition was increased to 1500M (1.5G) and a separate vendor partition is created.

This was done by adjusting the partition table and using up the free space.

The recovery (25) partition was increased a little, and the new vendor partition was created as 30.

This makes userdata 31 now instead of 30.

Since custom recoveries like TWRP are not set to use a separate vendor partition on these devices, the UA team created custom TWRP builds to utilize it.

When Lineage started making Nexus 7 (2013) builds officially again, the choose this partition layout.

Since this is a major change, they added the "x" to the name.

The builds are set to a 1.5G system and a separate vendor instead of including vendor in system.

The flox builds were released but it seems they never got the debx builds to go. ??

---

If you partitioned your device for flox, you will have a 1.5G system partition.

You do not need to partition your device again.

At least not yet. 🙃

Followmsi's current 19.1 build will install without a problem.

Hope it helps more than confuse. 🙃

Cheers all. :cowboy: