While installing the stock rom the steps include

  • Open TWRP
  • Clean Cache system data
  • Install stock rom

When I clean the system data the stock rom zip that I have kept in the sd card also gets deleted. How am I supposed to install the rom ? I am using TWRP , on a moto G2(2014), an the stock rom is android nougat 7.1

  • 1
    Just perform 'Factory Reset' in TWRP (Don't wipe /data partition).. That way, the files in Internal Storage remains – Gokul NC Aug 1 '17 at 15:27

Place the ROM zip file in /data/media , that won't get wiped, when you wipe with TWRP

That's assuming you don't have an external SD.

See this for more -What's the difference between Data and Internal Storage?

| improve this answer | |
  • But how to copy from sd card to /data/media – Agile_Eagle Aug 1 '17 at 14:26
  • 1
    If you're referring to /sdcard, which is also known as the Internal Storage, then you don't need to copy the file to /data/media if it's already in /sdcard, as /data/media serves as the emulated storage available through /sdcard as internal SD card. But, if you're referring to the external SD card, which is usually located in /external_sd, then it's up to you if you want to copy the file to /data/media, as you can select which partitions will TWRP wipe. If you want to copy the file, TWRP has a built-in file manager accessible through Advanced > File Manager. – Lloyd Dominic Dec 18 '19 at 12:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.