Issue
I want to create emulator in command line with some options, like hw.mainKeys = false
.
I need it to be an shell script so can run on automation test,however here I could not find a place to set those values.
android create avd
do not have a place to specify those options.
One alternative is create a 'platform' type avd, however, the shell is a interactive shell that is great for human but hard for script
Android 4.1 is a basic Android platform.
Do you wish to create a custom hardware profile [no]yes
Name of the AVD being run:
avd.name [<build>]:
Are there some tools I can just pass options as parameters, like --hw.mainKeys false
?
Solution
You can create text file config.ini with desired parameters
hw.lcd.density=252
sdcard.size=32M
skin.name=NEXUS-ONE
skin.path=platforms/android-10/skins/NEXUS-ONE
hw.cpu.arch=arm
hw.keyboard.lid=no
abi.type=armeabi
hw.keyboard=no
vm.heapSize=24
hw.ramSize=256
image.sysdir.1=platforms/android-10/images/
See official documentation here
Answered By - vasart
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.