I'm building a custom aosp image to which I want to add gapps after flashing.
There is not enough space in the system.img partition (500mb short) to accommodate gapps so the operation fails.
My question is where do I specify system.img partition size in the aosp tree?
Any ideas are welcome!
Okay, for other people looking for an answer for this, it is impossible to change the partition size for system.img
. It is defined as part of BoardConfig.mk
and is static for the device.
In theory, it may be possible to increase system.img
size by altering the parameter BOARD_SYSTEMIMAGE_PARTITION_SIZE
and reducing other partition sizes, but I guess that would fail if the partitions are on different physical devices.
See for example device/samsung/manta/BoardConfig.mk