How to: Fix Error 7(Unexpected contents in the system partition) Android

Problem:

  • Trying to flash an image on my 2013 android using TWRP I kept getting an Error 7 when flashing.

Solution:

  • Wipe all partitions and all data.
  • Reboot recovery
  • Copy Rom/Image to SD card using TWRP
  • Flash!