make system rw android
if system.img is sparse first unsparse it file system.img system.img: Android sparse image, version: 1.0, Total of 460079 4096-byte output blocks in 36 input chunks. simg2img system.img system.raw.img # e2fsck -f system.raw.img resize2fs system.raw.img 5G e2fsck -E unshare_blocks system.raw.img resize2fs -M system.raw.img e2fsck -f -y system.raw.img info compare fdisk -l system.img Disk system.img: 1.72 GiB, 1850331136 bytes, 3613928 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes sudo fdisk -l system.raw.img Disk system.raw.img: 1.76 GiB, 1884483584 bytes, 3680632 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes fdisk -l system.raw.img Disk system.raw.img: 2.36 GiB, 2532089856 bytes, 4945488 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 by...