Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Test for inEmulator fails #12829

Closed
clydebarrow opened this issue Sep 6, 2018 · 1 comment
Closed

Test for inEmulator fails #12829

clydebarrow opened this issue Sep 6, 2018 · 1 comment
Labels
Android Mapbox Maps SDK for Android

Comments

@clydebarrow
Copy link
Contributor

clydebarrow commented Sep 6, 2018

In file EGLConfigChooser.java there is a test for running in an emulator which is not working as expected:

/**
   * Detect if we are in emulator.
   */
  private boolean inEmulator() {
    return System.getProperty("ro.kernel.qemu") != null;
  }

On the Google emulator (which is AFAIK using qemu) this property is not set so the function returns false even though it is an emulator.

I have no idea whether this is significant in any sense, or how to reliably detect when running on an emulator.

Android versions: API 22
Device models: qemu-system-i386
Mapbox SDK versions: 6.4.0

@tobrun
Copy link
Member

tobrun commented Sep 6, 2018

Thanks for the report, this used to work well but apparently has regressed with recent emulator versions.

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Sep 6, 2018
@tobrun tobrun added this to the android-v6.6.0 milestone Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

2 participants