Questions tagged [emulation]

For questions about emulation and emulators, where a computer program is emulating (imitating) the behavior of another program or hardware device.

An emulator is a system which is designed to perform the duties of a different system. An emulator is distinct from a simulator (an emulator is intended to replicate the external behaviour of a system, whereas a simulator replicates the internal behaviour). See:

Emulators are commonly used to allow programs written for one system to be run on a different system. This is desirable when developing for a wide variety of target platforms, or when maintaining old programs designed for deprecated hardware.

One type of emulator that emulates a computer is called a . These are used by companies so they can tests their apps on the emulator rather than on an actual hardware.

Examples of some emulators:

Questions in this tag should relate in some way to the implementation or usage of a computer system which is an emulator.

4400 questions
31
votes
10 answers

I have got an AMD Ryzen CPU and Android emulator doesn't work

I have got an AMD Ryzen CPU and Android emulator doesn't work. It doesn't start the emulator becouse the CPU doesn't support the x86 emulator
Simone
  • 313
  • 1
  • 3
  • 4
30
votes
3 answers

Is it possible to emulate non-enumerable properties?

ES5 has a enumerable flag. Example Example var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor , pd = getOwnPropertyDescriptor(Object.prototype, "toString"); assert(pd.enumerable === false, "enumerability has the wrong value"); Partial…
Raynos
  • 166,823
  • 56
  • 351
  • 396
30
votes
8 answers

Just updated to Android Studio 4.2.1 on Mac and now emulator no longer works

I just updated Android Studio to its latest version 4.2.1 and the emulator stopped working. Every time I try to launch a new virtual device it crashes and AVD Manager shows me this error: "The emulator process for AVD Pixel_C_API_30 was killed" Here…
Fabrizio Ferrari
  • 869
  • 2
  • 12
  • 25
30
votes
3 answers

How to mock a picture in Android Emulator Camera?

Is there a way to set a static picture as the photo been taken by the emulator camera? I would like to test ir with zxing barcode reader on emulator.
JoaoGalli
  • 465
  • 2
  • 5
  • 13
30
votes
4 answers

How can I change the ram amount that the android emulator is using?

at the first setup, Android Studio asked me that how much ram does the emulator going to use. I entered 800M but it worked slowly. I need to make it a little bit bigger like 1.5GB. How can I do that? Is it editable after the first setup?
Arda Çebi
  • 1,705
  • 4
  • 15
  • 27
30
votes
11 answers

Why do I get a emulator-5554 disconnected message

When I start my android emulator it takes some times then it will show the emulator-5554 disconnected message. Can anyone tell me what the problem is?
saravanan
  • 1,229
  • 6
  • 16
  • 17
30
votes
7 answers

Emulating Linux binaries under Mac OS X

How do I run Linux binaries under Mac OS X? Googling around I found a couple of emulators but none for running Linux binaries on a Mac. There are quite a few posts about running Mac OS X on Linux and that kind of stuff - but that's the opposite of…
flouxgoux
  • 301
  • 1
  • 3
  • 4
30
votes
8 answers

Android emulator segmentation fault

Running it from the command line resulted in a segmentation fault: $ emulator -avd nexus_s Segmentation fault (core dumped) However, running emulator-arm directly as follows, works fine. $ emulator-arm -avd nexus_s I suspect it's trying to run the…
grebulon
  • 7,697
  • 5
  • 42
  • 66
30
votes
9 answers

Installing an apk on android emulator on Mac OS

I tried following these steps(from here): go to sdk folder, then go to tools. copy your apk file inside the tool directory ./emulator -avd myEmulator to run the emulator on mac ./adb install myApp.apk to install app on the emulator But when I run…
TruthOf42
  • 2,017
  • 4
  • 23
  • 38
29
votes
4 answers

Device identifier of Android emulator

I want to test in the emulator an app that depends of the device identifier (ANDROID_ID). I currently obtain device identifier with the following code: final String deviceID = Settings.Secure.getString(context.getContentResolver(),…
hpique
  • 119,096
  • 131
  • 338
  • 476
29
votes
1 answer

Android Studio and Visual Studio Emulator for Android debugging

Is it possible to connect the shiny Visual Studio Emulator for Android installed with Visual Studio 2015 RC to Android Studio? It is not showing in Run/Debug: [SOLVED] Found the address of the emulator: then connected to it using adb connect and…
Andrei Drynov
  • 8,362
  • 6
  • 39
  • 39
28
votes
7 answers

How to keep android emulator always on top in ubuntu 14.04

How to keep android emulator always on top in ubuntu 14.04 I am using Android Studio 2.1.1 and emulator version of 25.1.6 It was working before updating Android SDK Tools to 25.1.6.
rss
  • 293
  • 1
  • 3
  • 7
28
votes
10 answers

Forcing the Android emulator to store changes to /system

I know this is a recurrent question when working with the Android emulator, but is there a way to force the emulator to accept persistent changes to /system? The emulator is based on QEMU, so it should be possible, in theory, to force the system…
F.X.
  • 6,809
  • 3
  • 49
  • 71
27
votes
4 answers

Emulating density of 320 dpi on android emulator

We're trying to emulate devices with the new density of 320 dpi in Android 2.3 - such as Archos 101, and we can't seem to be able to define an emulator with such density, even after downloading the latest 2.3 sdk. I would really appreciate some…
LB_
  • 271
  • 1
  • 3
  • 3
27
votes
17 answers

Genymotion emulator no internet connection

I am trying to connect my genymotion emulator to internet and got this message: emulator network configuration:
Lior Pozin
  • 393
  • 1
  • 5
  • 14