18 votes

how to adb wait-for-device until the home screen shows up?

This is an old question and borderline off-topic but here is how to do it in a single line: adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent ...
Пионерка's user avatar
16 votes
Accepted

Can't use chmod to alter permissions on emulated phone

Figured it out - seems like you just can't change permissions for files on sdcard. Moved it to data/local and chmod worked like a charm.
Rachel L's user avatar
  • 341
14 votes

Reinstall AVD on Ubuntu 16.04

I am using Android Studio 2.1.1 and Ubuntu 16.04 (x64). The following solved the problems (sh: 1: glxinfo: not found and libGL error:.) for me. $ sudo apt-get install lib64stdc++6 (if it is not ...
ikolim's user avatar
  • 241
14 votes

Use image file as camera

There are 3rd-party "fake camera" apps that will let you to choose an image instead, such as: Image2Camera (free) Fake Camera by New Horizon Apps (free) Fake Camera - donate version by Vaclav Balak (...
Andrew T.'s user avatar
  • 15.3k
13 votes
Accepted

Root Android virtual device with Android 7.1.1

How to root android emulator (Android 7.1.1/ Nougat) I’m pleased to inform the community of an easier way to root android emulator (run from standalone Android SDK) Requirements: SuperSU app (...
xavier_fakerat's user avatar
13 votes
Accepted

How does the Android emulator emulate the RAM?

Android Virtual Devices are emulated using QEMU hypervisor which use physical memory. As any process, the allocated memory pages can be unmapped and swapped to disk or other storage by the host system....
St0rm's user avatar
  • 726
9 votes

How to install Google Play services on an Android 6.0 emulator?

1) Go get GApps for the emulator from http://opengapps.org 2) Unzip to get GmsCore.apk GoogleServicesFramework.apk GoogleLoginService.apk Phonesky.apk Launch the emulator from the command line,...
njha's user avatar
  • 191
9 votes

Does an Android Emulator exist which works with every possible app?

This can happen for the following reasons: The emulator presents an x86/MIPS CPU which the app does not support (probably not in your case as the app doesn't seem to require native code). Google ...
Tamoghna Chowdhury's user avatar
7 votes
Accepted

Check if emulator is using kvm in android studio

I just checked if the file /dev/kvm was opened before and after the emulator started: sudo lsof -n | grep /dev/kvm
estefan's user avatar
  • 86
6 votes

Android AVD throws errors, such as "Failed to sync vcpu reg"

Make sure that you're not running any other virtual machines, then try again. I was running a guest Windows 8 VirtualBox on El Capitan and I got the same error when I tried to run a virtual Android ...
JetBlack's user avatar
6 votes

Unable to get output buffers (err=-38) when attempting to screen-record emulator from ADB

From ADB documentation : "Some devices might not be able to record at their native display resolution. If you encounter problems with screen recording, try using a lower screen resolution." ...
Cristiano Ferreira's user avatar
5 votes

Downloading and installing the DEBIAN ARM packages and installing them on Termux?

Termux's repository of ARM packages can be found at: termux.net/dists/stable/main/binary-arm/ Additional resources that may be of interest: Termux Help: Package Management Termux Help: Termux and ...
Andy's user avatar
  • 147
5 votes

How to start AVD emulator without device frame

The following was implemented on a default configuration. Open AndroidStudio (AS) AVD Manager, click the "pencil icon" to edit the virtual device settings, uncheck the box next to "Enable Device ...
joey's user avatar
  • 51
5 votes

Install Google Play on Android SDK Emulator

For that, you have to install the Google Play image from the Android Studio SDK Manager. But you can't get it for API level below 24
Arjun Govind's user avatar
4 votes

Android AVD throws errors, such as "Failed to sync vcpu reg"

In my case, it's the docker program conflict with AVD, quit docker then restart the AVD is ok.
Piasy's user avatar
  • 141
4 votes

How can I use my PC's keyboard in the Android emulator?

I had this issue despite having the correct configuration, and realized that the actual problem was that the focus was on the emulator control buttons windows, as reported in this issue. To check if ...
David Fraser's user avatar
4 votes

Android Emulator change system sound

I'm running Windows 10 and I found that when launching the Android emulator, it would disable my Dolby audio enhancements. I simply had to turn it back on in the Sound properties.
Avery Larsen's user avatar
4 votes

The emulator process for AVD Nexus_5X_API_22 was killed

Go to: Tools > Android > AVD Manager Press the "edit" (pencil) icon next to your AVD Change "Graphics" to "Software".
Tim Cooper's user avatar
4 votes
Accepted

How to detect GPS status through adb shell?

You can use this command: adb shell settings get secure location_providers_allowed Possible outcomes: returns nothing, implying the GPS is switched off. gps,wifi,network or gps,network -- High ...
Firelord's user avatar
  • 24.7k
4 votes
Accepted

Adjust volume with Android Terminal Emulator command?

Use the following commands to change the volume from Android Terminal emulator (or other terminal emulator apps): Volume Up: input keyevent 24 Volume Down: input keyevent 25 In case pressing the ...
Reddy Lutonadio's user avatar
4 votes

How to startd the AVD manager without starting android studio

It is just the android avd command, where the android shell script is in the tools/ directory of your SDK installation. Or go to the directory and cd ~/Android/Sdk/tools/bin/ ./avdmanager ...
Tarek's user avatar
  • 159
4 votes

Is it possible to install an app compiled for ARM on an x86 emulator image

Genymotion with ARM translation You can use genymotion (the personal use version is free) with an Oreo ROM + ARM_Translation_Oreo.zip (google the filename to download it). Once you download the zip ...
ccpizza's user avatar
  • 485
4 votes

How to bypass an app's ability to know is being run on an emulator rather than a real device.

In general there are three ways to bypass an emulator check: Modify the app and remove the emulator check. Modify the emulator so that it pretends to be a real device. Modify the system calls the app ...
Robert's user avatar
  • 18.6k
4 votes

adb install apk successful on device (or emulator), but not found

perform a full uninstall adb uninstall <your-package-name> then try reinstall your app adb install app.apk I faced this issue on flutter release installation. This problem is caused because of ...
ASHKARAN's user avatar
  • 141
4 votes
Accepted

Can I get more RAM in emulator while still having a Google Play image?

The UI does not allow to change the RAM size neither when creating a new virtual device nor later when editing the virtual device. However on file level you can simply open the configuration file of ...
Robert's user avatar
  • 18.6k
4 votes

"cannot add library libvulkan.so" when trying to start emulator

I don't really have a solution, but a workaround: I had the same problem on openSUSE Leap 15.4 and could solve it by choosing "Software - GLES 2.0" for "Emulated Performance" when ...
Michael G.'s user avatar
3 votes
Accepted

Attempt to root AVD running Android 4.4/5.1 is failing

I have tested and found that irrespective of the version of Android, if the ABI is arm, armeabi or maybe even mips (not sure), the process of rooting is going to work. They didn't worked for me, as of ...
Avineshwar's user avatar
3 votes

Reinstall AVD on Ubuntu 16.04

Install in your system lib64stdc++6 # sudo apt-get install lib64stdc++6 Then link the new installed libraries to the android sdk tools path $ cd $ANDROID_HOME/Sdk/tools/lib64/libstdc++ $ mv ...
bigspawn's user avatar
  • 131
3 votes

read-only file system on emulator

I tried your answer but it didn't work. Eventually the following Stack Overflow Answer worked. 1) android-sdk-macosx/tools/emulator -avd <avdname> -writable-system 2) ./adb root 3) ./adb ...
kirenpillay's user avatar
3 votes

How to run Android apps on Amazon EC2?

Thanks to Ravello’s full nested virtualization support, it is possible to run Android emulator with hardware acceleration in any public cloud by following these steps: Create a host VM in Ravello (on ...
kenorb's user avatar
  • 574

Only top scored, non community-wiki answers of a minimum length are eligible