1

i have TWRP recovery installed, but i am looking for a way to flash the zip (after extracting) directly with fastboot. Is it possible?

Just Khaithang
  • 201
  • 1
  • 3
  • 7
  • 1
    Yes. You would be needing this tool for image conversion. https://github.com/xpirt/sdat2img – Firelord Jan 13 '21 at 21:16
  • @Firelord , what is the difference between sparse data and raw image (ext filesystem )?/what I mean is which one really is required by android to boot the system ? – Just Khaithang Jan 14 '21 at 12:34
  • That I don't know about. I had a device which I couldn't flash using recovery, and so, came across that tool. That's why I recommended it. Other folks might know the difference. – Firelord Jan 14 '21 at 12:37
  • "which one really is required" depends on how to flash it. the partition itself is of course always ext4 file system. all other file formats exist only to safe disk space (excluding the empty gaps) – alecxs Jan 14 '21 at 18:39
  • Note: fastboot has size limit. depending on ROM and fastboot version one must split system.img into system.img_sparsechunk.0 files manually or via argument – alecxs Jan 14 '21 at 18:57
  • @alecxs, I think converting the raw img file to sparse image handless the splitting part. I use img2simg for that purpose and after converting , I see the flashing takes place in multiple chunks. https://coral.googlesource.com/img2simg/ – Just Khaithang Feb 23 '21 at 14:42

0 Answers0