Android 15 preparations

This commit is contained in:
M66B
2024-05-08 14:49:37 +02:00
parent 3994216cc5
commit 3b1a31621f
7 changed files with 52 additions and 2 deletions

View File

@@ -1687,6 +1687,10 @@ public class Helper {
return (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S);
}
static boolean isAndroid15() {
return (Build.VERSION.SDK_INT > Build.VERSION_CODES.UPSIDE_DOWN_CAKE);
}
static String getMIUIVersion() {
try {
Class<?> c = Class.forName("android.os.SystemProperties");