Merge "Use ro.boot.qemu to check if the device is an emulator"

This commit is contained in:
Treehugger Robot
2021-03-16 16:31:57 +00:00
committed by Gerrit Code Review
6 changed files with 7 additions and 7 deletions

View File

@@ -138,7 +138,7 @@ public class Build {
*/
@UnsupportedAppUsage
@TestApi
public static final boolean IS_EMULATOR = getString("ro.kernel.qemu").equals("1");
public static final boolean IS_EMULATOR = getString("ro.boot.qemu").equals("1");
/**
* A hardware serial number, if available. Alphanumeric only, case-insensitive.