Skip to content

Commit bf09300

Browse files
authored
android: fix bypass_device_check.v2 being silently ignored (#543)
1 parent 7016523 commit bf09300

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

android/app/src/main/java/me/kavishdevar/librepods/utils/RootlessSupport.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import android.os.Build
2424
fun isSupported(sharedPreferences: SharedPreferences): Boolean {
2525
val isPixel = Build.MANUFACTURER.lowercase() == "google"
2626
val isOppoOrOnePlus = Build.MANUFACTURER.lowercase() in listOf("oneplus", "oppo")
27+
val isBypassFlagActive = sharedPreferences.getBoolean("bypass_device_check.v2", false)
28+
29+
if (isBypassFlagActive) return true
2730

2831
if (isPixel) {
2932
when (Build.VERSION.SDK_INT) {
@@ -38,5 +41,5 @@ fun isSupported(sharedPreferences: SharedPreferences): Boolean {
3841
} else if (isOppoOrOnePlus) {
3942
return Build.VERSION.SDK_INT >= 36
4043
}
41-
return sharedPreferences.getBoolean("bypass_device_check.v2", false)
44+
return false
4245
}

0 commit comments

Comments
 (0)