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.
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.
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.
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.
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
Open AVD Manager -> Wipe Data
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