全志代码首次提交

This commit is contained in:
2025-11-06 10:55:48 +08:00
commit fc767791f3
299 changed files with 26337 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package com.android;
import java.lang.reflect.Field;
public class MXQConfig {
public static final int ALLWINNER_PLM=0;
public static final int RK_PLM=1;
public static final int ARMLOGIC_PLM=2;
public static int PLATFORM_TAG=ALLWINNER_PLM;
public static String RK_PLATFORM="rockchip";
public static String ALLWINNER_PLATFORM="allwinner";
public static String getManufacturer() {
try {
Class<?> buildConfigClass = Class.forName("com.ik.mboxlauncher.BuildConfig");
Field debugField = buildConfigClass.getField("MANUFACTURER");
return (String)debugField.get(null);
} catch (Exception e) {
return ALLWINNER_PLATFORM; // 默认值
}
}
}