@SuppressLint("RestrictedApi")
    @Deprecated
    public static boolean isAtLeastS() {
        return VERSION.SDK_INT >= 31
                || (VERSION.SDK_INT >= 30 && isAtLeastPreReleaseCodename("S", VERSION.CODENAME));
    }
Checks if the device is running on a pre-release version of Android S or a release version of
Android S or newer.

@return {@code true} if S APIs are available for use, {@code false} otherwise
@deprecated Android S is a finalized release and this method is no longer necessary. It
will be removed in a future release of this library. Instead, use
{@code Build.VERSION.SDK_INT >= 31}.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/compat/BuildCompat.java