I need often to wipe data of a virtual device in Android Studio with Windows 10, is there a command line to wipe data of a virtual devices ?
Now I have to do it in Android Studio UI.
Image
Added Content
I do by Wipe data/Factory reset through ADB, but I can't get the correct result.
WipeDate.bat
e:
cd E:\Android_SDK\platform-tools
adb shell
recovery --wipe_data
cmd
Result
Open the terminal
android-sdk\tools>emulator -avd -wipe-data
Command Usage
emulator -avd Your_Device_Name -wipe-data
emulator -avd androidavd2 -wipe-data
For handling of Android Virtual Devices use can use avdmanager
for more details see this link Command Line Tool For Android Emulator . This page also contains complete official documentation for using command line tools for doing almost everything using command line, like creating, deleting an avd, installing apk on the emulator and running you app on avd.
Hope this solves your issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With