How can we change system.img size?

1,292 views
Skip to first unread message

Jijo Joseph

unread,
Dec 10, 2018, 1:12:35 PM12/10/18
to android-porting
I'm trying to build a GSI from AOSP pie branch. I want the system partition to be at least 1.5 GB of size so that I can install GApps. But the build always outputs 1.3 GB image. Is there a setting to change the size of the image?

Thanks in advance.

AKHILASH TP

unread,
Dec 11, 2018, 2:11:55 PM12/11/18
to android-porting
Hi Jijo,

As per my knowledge, you can't change the system.img size manually. it is auto generated from the build system. if you include more apps/photos/videos etc in your build, the system image size will change accordingly.

You can change the system image partition size. the steps for it will differ from the chip(processor) you are using. you can ask chip vendor or there will be documents for the same.

Mikhail Malakhov

unread,
Dec 11, 2018, 2:11:55 PM12/11/18
to android-porting
Hi!

You could define new system image size in your BoardConfig.mk

# Different sizes of partitions for build
# 1 GB for system partition
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824

Jijo Joseph

unread,
Dec 12, 2018, 10:38:15 AM12/12/18
to android-porting
Thanks Akhilash for the response. But as mentioned by Mikhail Malakhov that is possible. Even after doing it I'm not getting the size increased. May be I'm missing some other setting.

chirag vaghela

unread,
Dec 13, 2018, 12:29:27 PM12/13/18
to jijo.kav...@gmail.com, android-porting
Hello Jijo,

You can increase system image partition size. So it will solve your problem.

1) Check your partition.xml file. Check system image partition and change their.
2) Check you BoardConfig.mk file. There is one flag "BOARD_SYSTEMIMAGE_PARTITION_SIZE". you can change their also.

--------

Regards,

Chirag Vaghela



--
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jijo Joseph

unread,
Dec 14, 2018, 3:18:27 PM12/14/18
to chiragva...@gmail.com, android...@googlegroups.com
Thanks Chirag! But still no luck. I couldn't find partition.xml in the repo.
My build target is aosp_arm64_a-userdebug. I have changed the related BoardConfig.mk. But the same out put.

Am I missing something?
Reply all
Reply to author
Forward
0 new messages