|
@@ -261,14 +261,14 @@ public class Config {
|
|
|
Method get =c.getMethod("get", String.class);
|
|
|
if(Build.VERSION.SDK_INT < 28){//28 is andoird 9.0 24-7.0 22-5.1
|
|
|
serial = (String)get.invoke(c, "ro.serialno");
|
|
|
- } else{
|
|
|
+ }else{
|
|
|
serial = (String)get.invoke(c, "persist.sys.hrSerial");//vendor.gsm.serial
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
//紫鹏设备
|
|
|
- if (TextUtils.isEmpty(serial)) {
|
|
|
+ if (Build.MODEL.equals("A50R3")){
|
|
|
serial = Build.SERIAL;
|
|
|
}
|
|
|
return serial;
|