private String getPlatform()//取平台版本
{
    String platform = null;
    try {
        Class<?> classType = Class.forName("android.os.SystemProperties");
        Method getMethod = classType.getDeclaredMethod("get", new Class<?>[]{String.class});
        platform = (String) getMethod.invoke(classType, new Object[]{"ro.board.platform"});
    } catch (Exception e) {
        e.printStackTrace();
    }
    return platform;
}