On Tuesday, March 11, 2014 4:15:55 PM UTC+5:30, mansoor vm wrote: > > i am trying to build a custom rom, in which system.img size is always > 550mb i know we can change that in board config using > "BOARD_SYSTEMIMAGE_PARTITION_SIZE := 576716800" but to how much?From some > post i read we can see exact size by following command in adb shell > > cat proc/mtd > > mtd0: 22600000 00008000 "system" > > mtd1: 0c800000 00008000 "userdata" > > mtd2: 04200000 00008000 "cache" > > the above output is always same even i removed some packages in successive > builds .. Please help >
That output is the MTD (NAND/emmc) partitions and their size as defined in the kernel/bootloader. This does not correspond to the actual used area but rather the maximum available size. In your case system partition is size 0x22600000 = 576716800 I don't recall offhand if system.img uses the sparse image format. If it does not then you would always have system.img size == system partition size on mtd. This is because the img also contains the 'empty' area of the partition. -Vishveshwar -- -- unsubscribe: android-porting+unsubscr...@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-porting+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.