手机平台信息(高通或者MTK平台)的获取
1 代码示例
// 平台信息
public static String getHardWare() {
String result = Build.HARDWARE;
if (result.matches("qcom")) {
Log.d(TAG, "Qualcomm platform");
result = "高通平台(Qualcomm) - " + result;
} else if (result.matches("mt[0-9]*")) {
result = "MTK平台(MediaTek) - " + result;
}
return result;
}