private OSUtils() { Properties properties; try { properties = new Properties(); properties.load(new FileInputStream(new File(Environment.getRootDirectory(), "build.prop"))); } catch (IOException e) { properties = null; } if (properties != null) { emui = !TextUtils.isEmpty(properties.getProperty(KEY_EMUI_VERSION_CODE)); miuiVersion = properties.getProperty(KEY_MIUI_VERSION_CODE); miui = !TextUtils.isEmpty(miuiVersion) || !TextUtils.isEmpty(properties.getProperty(KEY_MIUI_VERSION_NAME)) || !TextUtils.isEmpty(properties.getProperty(KEY_MIUI_INTERNAL_STORAGE)); } flyme = hasFlyme(); }
private OSUtils() { Properties properties; try { properties = new Properties(); properties.load(new FileInputStream(new File(Environment.getRootDirectory(), "build.prop"))); } catch (IOException e) { properties = null; } if (properties != null) { emui = !TextUtils.isEmpty(properties.getProperty(KEY_EMUI_VERSION_CODE)); miuiVersion = properties.getProperty(KEY_MIUI_VERSION_CODE); miui = !TextUtils.isEmpty(miuiVersion) || !TextUtils.isEmpty(properties.getProperty(KEY_MIUI_VERSION_NAME)) || !TextUtils.isEmpty(properties.getProperty(KEY_MIUI_INTERNAL_STORAGE)); } flyme = hasFlyme(); }
private OSUtils() { Properties properties; try { properties = new Properties(); properties.load(new FileInputStream(new File(Environment.getRootDirectory(), "build.prop"))); } catch (IOException e) { properties = null; } if (properties != null) { emui = !TextUtils.isEmpty(properties.getProperty(KEY_EMUI_VERSION_CODE)); miuiVersion = properties.getProperty(KEY_MIUI_VERSION_CODE); miui = !TextUtils.isEmpty(miuiVersion) || !TextUtils.isEmpty(properties.getProperty(KEY_MIUI_VERSION_NAME)) || !TextUtils.isEmpty(properties.getProperty(KEY_MIUI_INTERNAL_STORAGE)); } flyme = hasFlyme(); }