Example usage for android.os Build PRODUCT

List of usage examples for android.os Build PRODUCT

Introduction

In this page you can find the example usage for android.os Build PRODUCT.

Prototype

String PRODUCT

To view the source code for android.os Build PRODUCT.

Click Source Link

Document

The name of the overall product.

Usage

From source file:Main.java

public static boolean isKindle() {
    return null != Build.PRODUCT && Build.PRODUCT.toUpperCase().startsWith("KINDLE");
}

From source file:Main.java

public static String getBuildProduct() {
    return Build.PRODUCT;
}

From source file:Main.java

public static boolean isEmulator() {
    return "sdk".equals(Build.PRODUCT);
}

From source file:Main.java

public static Boolean isEmulator() {
    return "google_sdk".equals(Build.PRODUCT);
}

From source file:Main.java

public static boolean isRunningOnEmulator() {
    return "google_sdk".equals(Build.PRODUCT) || Build.FINGERPRINT.startsWith("generic");
}

From source file:Main.java

public static boolean isRunningOnEmulator() {
    return ("google_sdk".equals(Build.PRODUCT) || "sdk".equals(Build.PRODUCT)
            || "sdk_phone_x86_64".equals(Build.PRODUCT));
}

From source file:Main.java

public static boolean isEmulator()
/*     */ {//  w ww. j  av a2 s  .  c om
    /* 274 */String product = Build.PRODUCT;
    /* 275 */return (product != null)
            && ((product.equals("sdk")) || (product.contains("_sdk")) || (product.contains("sdk_")));
    /*     */}

From source file:Main.java

public static boolean isMiBox2Device() {
    String manufacturer = Build.MANUFACTURER;
    String productName = Build.PRODUCT;
    return manufacturer.equalsIgnoreCase("Xiaomi") && productName.equalsIgnoreCase("dredd");
}

From source file:Main.java

/** Check if location come from emulator */
private static boolean isEmualtor() {
    return "google_sdk".equals(Build.PRODUCT);
}

From source file:Main.java

public static String getDeviceProduct(Context context) {
    String DevicePRODUCT = Build.PRODUCT;
    return DevicePRODUCT;
}