Using qemu monitor with the android emulator - android

I m trying to get a memory dump from a Android system using the pmemsave command from qemu, but I have some problems with accessing the qemu monitor interface.
I start the emulator with the following command:
$./emulator -avd test -verbose -qemu -monitor telnet:127.0.0.1:1234,server,nowait
The emulator starts up just fine, but when I telnet to the port I am not greeted with a banner, and no input seems to have any effect. I have also tried to set -monitor to stdio without success.

Same here. I'm afraid QEMU Monitor is no longer available.
Create AVD, telnet to it, and type qemu monitor:
$ telnet 127.0.0.1 5554
<snip>
qemu monitor
KO: QEMU support no longer available
See also:
Tweet https://twitter.com/blundell_apps/status/536163955186860032
Git commit https://github.com/android/platform_external_qemu/commit/aa1180ca05774398245953deb306c0e25829afee

Related

android emulator with serial port

I am trying to develop and application who connects to a serial port. For that, I am following this api:
https://code.google.com/archive/p/android-serialport-api/
https://github.com/cepr/android-serialport-api
When I run the application in a real device it works, but when run in the android emulator, no serial ports are shown in the setup activity.
I am doing the following steps to run the emulator:
C:\Users\myuser\AppData\Local\Android\sdk\tools\emulator.exe -avd Nexus_5_API_23 -qemu -serial COM1
C:\Users\myuser\AppData\Local\Android\sdk\platform-tools\adb.exe wait-for-device
C:\Users\myuser\AppData\Local\Android\sdk\platform-tools\adb.exe shell chmod 666 /dev/ttyS2
Similiar to this link:
https://github.com/cepr/android-serialport-api/blob/master/android-serialport-api/project/run_emulator.sh
I am using a Nexus 5 emulator, Should I choose another emulator?
What I am doing wrong? What I am missing?

Unable to create emulator in Android Studio

While creating an emulator, encountered the following error
Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
Hax is enabled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
adb_server_notify: Failed to establish connection to ADB server
console on port 5554, ADB on port 5555
emulator: ERROR: Could not initialize OpenglES emulation, use '-gpu off' to disable it.
Currently Android Studio IDE provides Virtualisation Technology for simulation for better and speedy performance.
For that purpose you have to install an patch of "HAXM". Virtualisation patch available at Android Download Manager.
after successful installation of that patch you have to enable the Virtualisation from system BIOS.
after that simulator will work surely with better and speedy performance.
if you are facing some issues with adb server then follows,
Go to the Android SDK platform-tools directory in Command Prompt.
type adb kill-server (Eclipse should be closed before issuing these commands)
then type adb start-server.
No error message is thrown while starting ADB server, then adb is started successfully.
Thats Done.

Running Android 5.0.1 x86 virtual device with host GPU disabled

I am working on automating screenshots capture for one of my apps.
Since I want to capture screenshots of some activities and widgets that differ according to the system locale, I start for each desired language a new Android virtual device (emulator) with the correct properties for setting the system locale. Then, specific user interactions are simulated with uiautomator.
My workflow is working as expected but I have an issue with screenshots capture. Indeed, using UiDevice.takeScreenshot(File storePath) or screencap on the emulator always creates an empty file.
It seems to be a known issue with AVD running with Host GPU enabled (which is my case). The proposed workaround is to start the emulator with Host GPU disabled. Unfortunately, when I start the virtual device with Host GPU disabled, the emulated screen remains black.
I have taken a look at the output of the emulator with the -verbose option and abd -e logcat command (emulator output, logcat output). In logcat ouput I have identified the following error but I cannot figure out the cause of it:
E/SurfaceFlinger( 929): hwcomposer module not found
E/SurfaceFlinger( 929): ERROR: failed to open framebuffer (No such file or directory), aborting
Below is the command I use to start the emulator:
LD_LIBRARY_PATH=$ANDROID_HOME/tools/lib:$LD_LIBRARY_PATH emulator -avd screenshots -skin nexus_6 \
-skindir $ANDROID_STUDIO_HOME/plugins/android/lib/device-art-resources -no-audio \
-prop persist.sys.language=en -prop persist.sys.country=en -verbose -qemu -m 512 -enable-kvm &
I am running Fedora 21 with an Nvidia GPU.
Does someone has succeeded to start an Android virtual device with a recent system image with Host GPU disabled? Any help or suggestion is welcomed.
Holy cow! The problem I am facing is a known issue. Workaround is to use a skin with lower screen resolution (e.g. nexus_4).

App does not load on Android Emulator

I am running my simplest Activity App in Emulator which I created in IntelliJ. I invoked Emulator from the IDEA IDE, it does show emulator in locked screen format. After unlocking I don't find icon of my application. Where am I doing wrong? or how can I run it manually on Emulator?
Emulator shows following message on Console:
Waiting for device.
/usr/local/Cellar/android-sdk/22.6/tools/emulator -avd myavd -netspeed full -netdelay none -wipe-data
emulator: ERROR: Could not load OpenGLES emulation library: dlopen(lib64OpenglRender.dylib, 1): image not found
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
HAX is working and emulator runs in fast virt mode
Device connected: emulator-5554
Emulator Snapshot attached. As you see. I don't find my app here
If you are using windows:
Go to cmd, cd into the folder containing the platform-tools.
Then -> adb install myapp.apk . This command installs the app.
If you are using GenyMotion emulator. Just grag and drop your apk into the emulator.
If the emulator is not in sync with the ADB,which is responsible for the connection. Just restart the ADB like:
adb kill-server
adb start-server

Google TV emulator won't start

I followed this Google TV Emulation guide, which tells how to set up my emulator environment. Although when I launch the AVD created by AVD manager, the emulator starts but no logo appears and a black screen. One of my CPU cores is always 100 percent; KVM is enabed. The -verbose option log ends with the following lines:
emulator: control console listening on port 5554, ADB on port 5555
emulator: sent '0012host:emulator:5555' to ADB server
emulator: ping program: /media/Mywork/tools/sdk/android-sdk-linux/tools/ddms
emulator: ping command: /media/Mywork/tools/sdk/android-sdk-linux/tools/ddms
My host envrionment is: Intel i7, Ubuntu 10.04 64-bit.
Can you post the settings for your AVD?
Edit:
Also, have you tried pushing an app into the emulator?
Can you include the steps you used to launch the emulator?
Did you apt-get install kvm?

Categories

Resources