import android.util.Log;
public class Device_tool {
private static String []list={"Redmi Note 11 5G","JLH-","TFY-","DVC-","TAS-","ELE-"};
public static String get_device_type(){
return android.os.Build.MODEL;
}
public static boolean can_use_lib(){
String str=android.os.Build.MODEL;
String regex;
for(int i=0;i<list.length;i++){
regex="^"+list[i]+"(.*)";
if(str.matches(regex)){
return true;
}
}
return false;
}
}
沒有留言:
張貼留言