version:1.5.0821
bugfixes: add:优化sn显示,增加mt6765平台
This commit is contained in:
@@ -797,17 +797,17 @@ public class Utils {
|
||||
* @return
|
||||
*/
|
||||
public static String getSerial(Context context) {
|
||||
if ("HL500".equals(Build.MODEL)) {
|
||||
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.HL500Platform) {
|
||||
return getIMEI(context);
|
||||
}
|
||||
if (TECLAST_BRAND.equalsIgnoreCase(Build.BRAND)) {
|
||||
return getPushMac(context);
|
||||
} else {
|
||||
if (NOSN.equalsIgnoreCase(getSn())) {
|
||||
return getIMEI(context);
|
||||
} else {
|
||||
// if (NOSN.equalsIgnoreCase(getSn())) {
|
||||
// return getIMEI(context);
|
||||
// } else {
|
||||
return getSn();
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1830,6 +1830,7 @@ public class Utils {
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.P50Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.seewoPlatform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.U1302Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MT6765Platform
|
||||
) {
|
||||
return Utils.getProperty("ro.build.display.id", "获取失败");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user