feat(build): 新增 MX11 和 G12NL 平台支持

- 添加平台识别常量及构建变体
- 适配强制安装、USB 设置和系统属性逻辑
- 更新版本号并统一 debug 版本后缀格式
This commit is contained in:
2026-09-07 16:42:34 +08:00
parent 3babc04942
commit a83464dd7e
8 changed files with 101 additions and 36 deletions

View File

@@ -2978,7 +2978,9 @@ public class NetInterfaceManager {
private void setForceInstall(List<String> forceApp) {
Set<String> forceAppSet = new HashSet<>();
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform) {
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MX11Platform
) {
forceAppSet.addAll(ApkUtils.DX11App);
}
if (forceApp != null) {

View File

@@ -804,6 +804,7 @@ public class GuardService extends Service {
Intent usbIntent = new Intent(usbStatus);
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.TeclastP20sPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MX11Platform
) {
usbIntent.setPackage("com.android.settings");
}

View File

@@ -555,6 +555,9 @@ public class ApkUtils {
this.add("com.example.abc_qq_app");
this.add("com.yangcong345.onionschool");
this.add("com.yangcong345.zhike");
this.add("com.aidouxue.question_survivors");
this.add("com.aidouxue.learning.yinji");
}};
public static void HideAiUDuApp() {

View File

@@ -177,6 +177,8 @@ public class JgyUtils {
public static final int G128TPlatform = 29;
public static final int QualcommTPlatform = 30;
public static final int DX11Platform = 31;
public static final int G12NLPlatform = 32;
public static final int MX11Platform = 33;
public static final String Other = "其他";
@@ -204,6 +206,8 @@ public class JgyUtils {
public static final String G128T_TAG = "G128T";
public static final String Qualcomm_TAG = "QualcommA";
public static final String DX11_TAG = "DX11";
public static final String G12NL_TAG = "G12NL";
public static final String MX11_TAG = "MX11";
private CacheHelper cacheHelper;
@@ -363,9 +367,15 @@ public class JgyUtils {
} else if (Qualcomm_TAG.equalsIgnoreCase(platform)) {
Log.i(TAG, "checkAppPlatform: " + "QualcommA");
return QualcommTPlatform;
} else if (G12NL_TAG.equalsIgnoreCase(platform)) {
Log.i(TAG, "checkAppPlatform: " + "G12NL");
return G12NLPlatform;
} else if (DX11_TAG.equalsIgnoreCase(platform)) {
Log.i(TAG, "checkAppPlatform: " + "DX11");
return DX11Platform;
} else if (MX11_TAG.equalsIgnoreCase(platform)) {
Log.i(TAG, "checkAppPlatform: " + "MX11");
return MX11Platform;
} else {
Log.i(TAG, "checkAppPlatform: " + "没有数据");
return UnknowPlatform;
@@ -434,8 +444,12 @@ public class JgyUtils {
getAppPlatformCallback.AppPlatform(G128TPlatform);
} else if (Qualcomm_TAG.equalsIgnoreCase(platform)) {
getAppPlatformCallback.AppPlatform(QualcommTPlatform);
} else if (G12NL_TAG.equalsIgnoreCase(platform)) {
getAppPlatformCallback.AppPlatform(G12NLPlatform);
} else if (DX11_TAG.equalsIgnoreCase(platform)) {
getAppPlatformCallback.AppPlatform(DX11Platform);
} else if (MX11_TAG.equalsIgnoreCase(platform)) {
getAppPlatformCallback.AppPlatform(MX11Platform);
} else {
getAppPlatformCallback.AppPlatform(UnknowPlatform);
}
@@ -1483,7 +1497,8 @@ public class JgyUtils {
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.G11Platform) {
pkgSet.addAll(ApkUtils.G11Pkgs);
}
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform) {
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MX11Platform) {
pkgSet.addAll(ApkUtils.DX11App);
}
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.YXPD1Platform) {
@@ -1830,7 +1845,8 @@ public class JgyUtils {
if (ApkUtils.mJxwApp.contains(packageName)) {
continue;
}
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform) {
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MX11Platform) {
if (ApkUtils.DX11App.contains(packageName)) {
continue;
}

View File

@@ -150,6 +150,7 @@ public class SysSettingUtils {
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.TeclastP20sPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.AH6016Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MX11Platform
) {
usbIntent.setPackage("com.android.settings");
}
@@ -254,6 +255,7 @@ public class SysSettingUtils {
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.AH6016Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.seewoPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MX11Platform
) {
usbIntent.setPackage("com.android.settings");
}
@@ -324,6 +326,7 @@ public class SysSettingUtils {
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.TeclastP20sPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.AH6016Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MX11Platform
) {
usbIntent.setPackage("com.android.settings");
}
@@ -1239,6 +1242,7 @@ public class SysSettingUtils {
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.TeclastP20sPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.AH6016Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MX11Platform
) {
usbIntent.setPackage("com.android.settings");
}

View File

@@ -1847,6 +1847,8 @@ public class Utils {
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.G128TPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.QualcommTPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.DX11Platform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.G12NLPlatform
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MX11Platform
) {
return Utils.getProperty("ro.build.display.id", "获取失败");
} else {