Further inclining towards the custom development, the next best approach to get this job done is via the TWRP Recovery. However, nowadays, most custom ROMs come with their own recovery as well. So additionally installing TWRP on top of the existing RIOM would not only call for additional effort but could also lead to a few issues. Moreover, the support for TWRP is slowly declining as well, so there are quite a few devices that don’t have a working TWRP. So your next best bet will be to boot your device to Fastboot Mode and use the fastboot -w command. This is generally the best way of getting the job done and I personally prefer this approach itself. But to carry out this process, you’ll need to have fastboot drivers installed beforehand. if you don’t want to do so, then your best bet is to format data/factory reset your Android device via the ADB Command. And in this guide, we will show you how to do just that. Follow along.
How to Format Data/Factory Reset Android via ADB Command
The below process will wipe off all the data from your device, so please take a complete device backup beforehand. Moroever, this process is not applicable to stock recovery, it will only work on AOSP recoveries, such as LineageOS Recovery, Pixel Experience Recovery, etc. That’s it. These were the steps to format data.factory reset Android using ADB Commands. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.
Bypass Password/Pattern/PIN on Android without ResetFix Can’t load Android System Your data may be corrupt without ResetHow to Change Font/Apply Custom Font in AndroidHow to Install any GSI ROM on Android without PC [Video]