From bffb5c8b3e5014916cb596ff128eaffcaa0686fb Mon Sep 17 00:00:00 2001 From: Kavish Devar Date: Wed, 10 Jun 2026 14:43:36 +0530 Subject: [PATCH] android: consider all A17 devices supported Google's statements were ambiguous on if the workaround will be available on A17 or still on OEM to implement this specific patch. But the app does work on OneUI 9 --- .../librepods/utils/RootlessSupport.kt | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/android/app/src/main/java/me/kavishdevar/librepods/utils/RootlessSupport.kt b/android/app/src/main/java/me/kavishdevar/librepods/utils/RootlessSupport.kt index 55cd5f21..e30464fb 100644 --- a/android/app/src/main/java/me/kavishdevar/librepods/utils/RootlessSupport.kt +++ b/android/app/src/main/java/me/kavishdevar/librepods/utils/RootlessSupport.kt @@ -22,22 +22,13 @@ import android.content.SharedPreferences import android.os.Build fun isSupported(sharedPreferences: SharedPreferences): Boolean { + if (Build.VERSION.SDK_INT == 37) return true + val isBypassFlagActive = sharedPreferences.getBoolean("bypass_device_check.v2", false) + if (isBypassFlagActive) return true val isPixel = Build.MANUFACTURER.lowercase() == "google" val isOppoFamily = Build.MANUFACTURER.lowercase() in listOf("oneplus", "oppo", "realme") - val isBypassFlagActive = sharedPreferences.getBoolean("bypass_device_check.v2", false) - - if (isBypassFlagActive) return true - - if (isPixel) { - when (Build.VERSION.SDK_INT) { - 36 -> { - return Build.ID.startsWith("CP1A") - } - - 37 -> { - return true - } - } + if (isPixel && Build.VERSION.SDK_INT == 36) { + return Build.ID.startsWith("CP1A") } else if (isOppoFamily) { return Build.VERSION.SDK_INT >= 36 }