"getprop" execution to reflection replacement for reason XIAOMI

This commit is contained in:
Vologhat
2022-09-27 21:21:41 +03:00
parent c8e6468068
commit 4d7d5ea125
@@ -18,9 +18,9 @@ public class OEMDetector {
static {
try {
getPropMtd = ReflectionUtils.getDeclaredMethod("android.os.SystemProperties", "get", String.class);
semPlatformIntField = ReflectionUtils.getDeclaredField(Build.VERSION.class, "SEM_PLATFORM_INT");
getPropMtd = ReflectionUtils.getDeclaredMethod(ReflectionUtils.getClass("android.os.SystemProperties"), "get", String.class);
} catch (Throwable e) {
} catch (NoSuchFieldException | ClassNotFoundException | NoSuchMethodException e) {
e.printStackTrace();
}
}