I am trying to do Factory Reset Device without any Recovery as i need to wipe complete data from device. I have tried many Commands but none of them work. Some are as Follows:-
adb shell am broadcast -a android.intent.action.MASTER_CLEAR
This command works with phone contains api level less than 22 but not on Upper Api level Devices.
I also tried --wipe_data command but it says Command not found.
Can anyone tell me how can i Factory Reset Data without Recovery Device.
Thanks
--wipe_data
is a flag ofrecovery
command. After entering ADB Shell, runrecovery --wipe_data
. May not work if you have custom recovery.adb shell "su -c 'am broadcast -a android.intent.action.MASTER_CLEAR'"