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
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
  • 816
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
7 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 the flutter release installation. This problem happens because ...
ASHKARAN's user avatar
  • 171
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
6 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
  • 20.2k
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

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

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 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

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

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
  • 584
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
  • 25.1k
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
Accepted

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

No, it's not possible. You need to find a version of the app that was compiled for x86, or without any architecture-specific parts (i.e. Java only).
Dan Hulme's user avatar
  • 35k
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
  • 530
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
  • 20.2k
4 votes
Accepted

What is the format of Android M1 Initial Preview system.img?

wrong offset, partition start at sector 4096. you can use kpartx instead newer android running dynamic partitions. the super partition can be unpacked with Dynamic Partition Tools furthermore ...
alecxs's user avatar
  • 4,044
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

Feed an image to Genymotion Camera

I failed to get this working on Ubuntu 18.04. Here's what I found: The Ubuntu repos contain a program called Webcamoid which can create a virtual camera that uses your desktops as the camera input. ...
talljosh's user avatar
  • 131
3 votes

Android Emulator: How to avoid boot loop after rooting?

Been busy working on the issue for a couple of hours now... I have tried to reproduce the boot loop issue and I think when you update the su binaries somehow the system.img file is getting fried for ...
xavier_fakerat's user avatar
3 votes

How to fix the "Andy Installation failed - Please verify your connection" error when installing Andyroid?

What worked for me was uninstalling Virtual Box and letting Andy install the version it wanted. A hassle for sure.
Robert Brisita's user avatar

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