Manage android emulators from your NodeJS scripts.
Manage android emulators.
var emulator = require('android-emulator');
Make sure to install Intel HAXM to have better perfs using x86 images.
Every call returns a Promise.
return existing AVD
emulator.list();
create a new AVD using given options. Options are the same as in the Android AVD options without the dashes. We provide some sample configurations in sample-emulators.json
emulator.create('Nexus7-4.4.3', {
abi: 'x86',
target: 'android-19',
skin: '1280x800'
});
Start the given AVD. Promise is fulffiled when device is full booted.
emulator.start('Nexus7-4.4.3');
Stop the given AVD.
emulator.start('Nexus7-4.4.3');