mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-06-13 20:08:55 +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
|
import android.os.Build
|
||||||
|
|
||||||
fun isSupported(sharedPreferences: SharedPreferences): Boolean {
|
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 isPixel = Build.MANUFACTURER.lowercase() == "google"
|
||||||
val isOppoFamily = Build.MANUFACTURER.lowercase() in listOf("oneplus", "oppo", "realme")
|
val isOppoFamily = Build.MANUFACTURER.lowercase() in listOf("oneplus", "oppo", "realme")
|
||||||
val isBypassFlagActive = sharedPreferences.getBoolean("bypass_device_check.v2", false)
|
if (isPixel && Build.VERSION.SDK_INT == 36) {
|
||||||
|
return Build.ID.startsWith("CP1A")
|
||||||
if (isBypassFlagActive) return true
|
|
||||||
|
|
||||||
if (isPixel) {
|
|
||||||
when (Build.VERSION.SDK_INT) {
|
|
||||||
36 -> {
|
|
||||||
return Build.ID.startsWith("CP1A")
|
|
||||||
}
|
|
||||||
|
|
||||||
37 -> {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (isOppoFamily) {
|
} else if (isOppoFamily) {
|
||||||
return Build.VERSION.SDK_INT >= 36
|
return Build.VERSION.SDK_INT >= 36
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user