Small fix

This commit is contained in:
M66B 2023-08-29 22:37:31 +02:00
parent 20e5acdc95
commit edc38f04d1
1 changed files with 1 additions and 0 deletions

View File

@ -1587,6 +1587,7 @@ public class Helper {
try {
Class<?> c = Class.forName("android.os.SystemProperties");
Method get = c.getMethod("get", String.class);
get.setAccessible(true);
String miui = (String) get.invoke(c, "ro.miui.ui.version.code");
return (TextUtils.isEmpty(miui) ? null : miui);
} catch (Throwable ex) {