Java tutorial
//package com.java2s; import android.os.Build; public class Main { public static boolean isXiaomi3() { String brand = getBrand(); String model = getModel(); if (brand.equals("Xiaomi") && model.equals("MI 3")) { return true; } return false; } public static String getBrand() { return Build.BRAND; } public static String getModel() { return Build.MODEL; } }