version:6.4.2

fix:统一版本号
update:增加G13型号
This commit is contained in:
2023-09-07 14:43:52 +08:00
parent af14f02fba
commit a069f5c848
4 changed files with 50 additions and 83 deletions

View File

@@ -119,6 +119,8 @@ public class JGYUtils {
public static final int TeclastP20sPlatform = 6;
public static final int AH6016Platform = 9;
public static final int ZR6016Platform = 10;
public static final int HRAD13Platform = 11;
public static final String Other = "其他";
public static final String MTKTag = "MTK";
@@ -128,6 +130,7 @@ public class JGYUtils {
public static final String TeclastP20sTag = "P20S";
public static final String AH6016Tag = "AH6016";
public static final String ZR6016Tag = "ZR6016";
public static final String HRAD13Tag = "HRAD13";
private CacheHelper cacheHelper;
@@ -198,6 +201,9 @@ public class JGYUtils {
} else if (ZR6016Tag.equalsIgnoreCase(platform)) {
Log.i(TAG, "checkAppPlatform: " + "ZR6016");
return ZR6016Platform;
} else if (HRAD13Tag.equalsIgnoreCase(platform)) {
Log.i(TAG, "checkAppPlatform: " + "HRAD13");
return HRAD13Platform;
} else {
Log.i(TAG, "checkAppPlatform: " + "没有数据");
return UnknowPlatform;
@@ -233,6 +239,8 @@ public class JGYUtils {
getAppPlatformCallback.AppPlatform(AH6016Platform);
} else if (ZR6016Tag.equalsIgnoreCase(platform)) {
getAppPlatformCallback.AppPlatform(ZR6016Platform);
} else if (HRAD13Tag.equalsIgnoreCase(platform)) {
getAppPlatformCallback.AppPlatform(HRAD13Platform);
} else {
getAppPlatformCallback.AppPlatform(UnknowPlatform);
}
@@ -254,6 +262,8 @@ public class JGYUtils {
return AH6016Tag;
} else if (ZR6016Tag.equalsIgnoreCase(platform)) {
return ZR6016Tag;
} else if (HRAD13Tag.equalsIgnoreCase(platform)) {
return HRAD13Tag;
} else {
return Other;
}
@@ -1656,6 +1666,7 @@ public class JGYUtils {
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.CubePlatform
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.AH6016Platform
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZR6016Platform
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.HRAD13Platform
) {
Settings.Global.putInt(crv, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, state == 1 ? 0 : 1);
Settings.Global.putInt(crv, Settings.Global.ADB_ENABLED, state == 1 ? 0 : 1);

View File

@@ -785,7 +785,7 @@ public class Utils {
return t1;
}
public static final String NOSN = "012345679ABCDEF";
public static final String NOSN = "0123456789ABCDEF";
public static final String TECLAST_BRAND = "Teclast";
/**
@@ -1758,6 +1758,7 @@ public class Utils {
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.TeclastP20sPlatform
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.AH6016Platform
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZR6016Platform
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.HRAD13Platform
) {
return Utils.getProperty("ro.build.display.id", "获取失败");
} else {