Sorry, all these commands are done inside TWRP just before the sideload. I assume what you are saying is a “factory reset” from inside the OS.
All these steps are to be done in TWRP right before you sideload /e/Q ROM via adb👇Ensure you are on a stock Android 10/Q ROM and you have USB debugging enabled in developer options before proceeding.
- Boot into TWRP. Now tap Wipe.
- Now tap Format Data and continue with the formatting process by typing “yes”. This will remove encryption and delete all files stored in the internal storage.
- Return to the previous menu and tap Advanced Wipe, then select the Cache, data and System partitions and then Swipe to Wipe.
- Sideload the /e/Q ROM
.zip
package:
- On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload.
- On the host machine, sideload the package using:
adb sideload filename.zip
.
That’s it👆, done.