Example usage for android.os Build MANUFACTURER

List of usage examples for android.os Build MANUFACTURER

Introduction

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

Prototype

String MANUFACTURER

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

Click Source Link

Document

The manufacturer of the product/hardware.

Usage

From source file:Main.java

public static String getPhoneName() {
    return Build.MANUFACTURER + "." + Build.MODEL;
}

From source file:Main.java

public static boolean checkIsMeizuRom() {
    return Build.MANUFACTURER.contains("Meizu");
}

From source file:Main.java

public static String getDeviceInfo() {
    return Build.MANUFACTURER + " " + Build.MODEL;
}

From source file:Main.java

public static boolean checkIsHuaweiRom() {
    return Build.MANUFACTURER.contains("HUAWEI");
}

From source file:Main.java

public static String getDeviceManufacturer() {
    return Build.MANUFACTURER;
}

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

public static final String getPhoneModelWithManufacturer() {
    return Build.MANUFACTURER + " " + Build.MODEL;
}

From source file:Main.java

public static String getDeviceName() {
    String manufacturer = Build.MANUFACTURER;
    String model = Build.MODEL;//from  w ww.j  ava 2s .c  o m
    if (model.startsWith(manufacturer)) {
        return model.toUpperCase();
    } else {
        return manufacturer + " " + model;
    }
}

From source file:Main.java

public static String getHardware() {
    return Build.MANUFACTURER.toLowerCase(Locale.getDefault()) + ' '
            + Build.MODEL.toLowerCase(Locale.getDefault());
}

From source file:Main.java

public static String getPid() {
    StringBuilder pid = new StringBuilder(Build.MANUFACTURER).append(" ").append(Build.MODEL).append(" - ")
            .append(Build.VERSION.RELEASE);

    return pid.toString();
}