全志代码首次提交
This commit is contained in:
25
mylibrary/src/main/java/com/android/MXQConfig.java
Normal file
25
mylibrary/src/main/java/com/android/MXQConfig.java
Normal 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; // 默认值
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user