Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove password from Android Emulator?

How to get rid of/get past the "Enter password to unlock" prompt in the Android emulator?

Wish I could explain how this got turned on but its probably my fault. I've been trying to use the android maven plugin to build apps for a custom kernel to get tooled up to build a custom device admin app. I recall finding a "API Demos" app in the emulator with and using its "Device Admin" button to register an account with google (even tho I'd already registered). Google refused every account name I could think of so I gave up. Or maven might have compiled a sample device admin app into that kernel.

I am not really sure how it got in this state. Will investigate once I get the emulator back in a usable state, if that's even possible.

like image 348
Bradjcox Avatar asked Jan 25 '12 01:01

Bradjcox


People also ask

How do I get rid of lock emulator?

The latest version of the Android OS 4.2. 2 has a way to remove it via the emulator Settings. Just go to : Security >> Screen Lock, and select "NONE." Make sure you are saving the emulator settings to Snapshot so you don't have to keep going through these same steps.

How do you unlock an emulator?

Go to AVD manager screen, edit your Emulator and go to Advanced Settings . Select Cold boot as Boot option located in Emulated Performance section. This way you will be able to restart your emulator and get it unlocked without loosing data.

How do you erase data from an emulator?

Run and stop an emulator, and clear data To run an emulator that uses an AVD, click Launch . To stop a running emulator, click Menu and select Stop. To clear the data for an emulator, select Wipe Data. Or click Menu and select Wipe Data.


2 Answers

This seems to have fixed it:

emulator -avd AVD2.2 \
-system out/target/product/generic/system.img \
-initdata out/target/product/generic/userdata.img \
-wipe-data
like image 90
Bradjcox Avatar answered Dec 01 '22 20:12

Bradjcox


Open AVD Manager -> Wipe Data

enter image description here

like image 41
Arpit Patel Avatar answered Dec 01 '22 18:12

Arpit Patel