Simple note for factory reset Android via ADB.

Preface

Factory Reset from the GUI settings of my ASUS ZenFone 2 (ZE551ML) with CynagenMod 14 installed didn't work.


Steps

Before doing this:

  • Make sure your computer had already installed adb.
    • For Arch Linux users: $ sudo pacman -S android-tools
  • Make sure your Android phone had already enable the Developer Options and enable the USB Debugging via ADB.

Let's go:

  1. Connect your Android phone to your computer.
  2. $ adb devices make sure your phone is listed.
  3. $ adb reboot bootloader to reboot the Android to bootloader.
  4. Wait until it reboot to bootloader.
  5. $ sudo fastboot erase userdata to wipe all user data.
  6. $ sudo fastboot erase cache to wipe all cache.
  7. $ sudo fastboot reboot to reboot your phone.

And that's it, it works for me.

$ adb --version  
Android Debug Bridge version 1.0.36  
Revision 7.1.2_r6  

Share


Donation

如果覺得這篇文章對你有幫助, 除了留言讓我知道外, 或許也可以考慮請我喝杯咖啡, 不論金額多寡我都會非常感激且能鼓勵我繼續寫出對你有幫助的文章。

If this blog post happens to be helpful to you, besides of leaving a reply, you may consider buy me a cup of coffee to support me. It would help me write more articles helpful to you in the future and I would really appreciate it.


Related Posts