mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-06-13 12:03:08 +00:00
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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user