Skip to content

Commit

Permalink
fix detection of android emulator
Browse files Browse the repository at this point in the history
at some point, the `Build.FINGERPRINT` of the emulator has changed and
no longer includes `generic` as an option.

It apparently now, on all platforms, includes `google/sdk_gphone` at the
beginning.
  • Loading branch information
deecewan committed Oct 28, 2022
1 parent 6a43faf commit 53fd80a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private static boolean isRunningOnGenymotion() {
}

private static boolean isRunningOnStockEmulator() {
return Build.FINGERPRINT.contains("generic");
return Build.FINGERPRINT.contains("generic") || Build.FINGERPRINT.startsWith("google/sdk_gphone");
}

public static String getServerHost(Integer port) {
Expand Down

0 comments on commit 53fd80a

Please # to comment.