4

I own a Oneplus 7T, which runs Android 10 and therefore has no working TWRP to flash ROMs with. It's bootloader is unlocked and is rooted.

When installing a new ROM, whether it is a custom ROM or an update to the current ROM, I install them by extracting the ROM zip, extracting payload.bin, and flashing certain .img files in fastboot, following the instructions found here under the 'Manual Flash' section.

However, I'd like to understand more about this process. The instructions flash less .img files than were extracted. For example, in the recent Oneplus 7T OOS 10.0.11 update, the the number of .img files extracted (31) is less than what was flashed according to the instructions (19). Furthermore, the instructions passed the arguments --disable-verity when flashing two of the .imgs, but not the others.

Therefore, I'm wondering:

  1. What does each .img file do?
  2. Which files must be flashed and in what order?
  3. Why are certain files flashed with certain arguments?
George Tian
  • 185
  • 2
  • 7
  • 1
  • A brief description of commonly found partitions (but not all) can be found here: https://forum.xda-developers.com/android/general/info-android-device-partitions-basic-t3586565 // 2. Since fastboot stock ROMs are usually meant to fix bricked devices, they include all partitions, even those not getting frequent updates from OEM. Under normal circumstances you don't need to flash critical partitions like those related to SoC, modem, bootloaders, TEE etc. which may render your device unbootable if flashing goes wrong. // 3. --disable-verity disables dm-verity (Android's Verified Boot).
  • – Irfan Latif May 30 '20 at 16:21