Class<?> classType = Class.forName("android.os.SystemProperties");
Method getMethod = classType.getDeclaredMethod("get", new Class<?>[] {String.class});
String buildVersion = (String)getMethod.invoke(classType, new Object[] {"ro.build.version.emui"});
注意:需要最低SDK版本19
如何获取华为手机上EMUI版本号?
最新推荐文章于 2021-05-28 06:19:28 发布