MCPcopy Create free account
hub / github.com/M66B/FairEmail / getMIUIVersion

Method getMIUIVersion

app/src/main/java/eu/faircode/email/Helper.java:1844–1855  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1842 }
1843
1844 static String getMIUIVersion() {
1845 try {
1846 Class<?> c = Class.forName("android.os.SystemProperties");
1847 Method get = c.getMethod("get", String.class);
1848 get.setAccessible(true);
1849 String miui = (String) get.invoke(c, "ro.miui.ui.version.code");
1850 return (TextUtils.isEmpty(miui) ? null : miui);
1851 } catch (Throwable ex) {
1852 Log.w(ex);
1853 return null;
1854 }
1855 }
1856
1857 static String getUiModeType(Context context) {
1858 try {

Callers 1

getAppInfoMethod · 0.95

Calls 3

wMethod · 0.95
invokeMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected