How to reduce the android image size (system.img)

935 views
Skip to first unread message

anand sagar

unread,
Jan 8, 2016, 11:35:50 AM1/8/16
to Android Building
I am working on Android L source code, the default built image size of system.img is ~900mb. Would like to know is there any way to reduce the overall size of the final .img files ? 

zhongtian xie

unread,
Jan 20, 2016, 12:12:29 AM1/20/16
to Android Building
Hi sagar,
 
    just run cmd as below:

sudo apt-get install  squashfs-tools

If you have squashfs-tools 4.0 (older version will not work) installed in your host, the generated Android core filesystem will be compressed by squashfs. So the iso file is very small (only about 30-40%).

在 2016年1月9日星期六 UTC+8上午12:35:50,anand sagar写道:
Reply all
Reply to author
Forward
0 new messages