if(android.os.Build.DEVICE.contains("xxxx")){
//abdroid 设备名包含xxxx,为真
}
true
if the sequence of characters are contained in this string, otherwise false
.
android.os.Build.DEVICE //设备名
android.os.Build.ID //版本ID
android.os.Build.PRODUCT //产品名