26 lines
741 B
Java
26 lines
741 B
Java
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; // 默认值
|
|
}
|
|
}
|
|
}
|