Skip to content

Commit

Permalink
Merge pull request #880 from t-m-w/eng
Browse files Browse the repository at this point in the history
eng builds are debug too
  • Loading branch information
chirayudesai authored Feb 25, 2025
2 parents 36c4e5f + bc39ac9 commit f500cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/stevesoltys/seedvault/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const val ERROR_BACKUP_CANCELLED: Int = BackupManager.ERROR_BACKUP_CANCELLED
const val ERROR_BACKUP_NOT_ALLOWED: Int = BackupManager.ERROR_BACKUP_NOT_ALLOWED

// TODO this doesn't work for LineageOS as they do public debug builds
fun isDebugBuild() = Build.TYPE == "userdebug"
fun isDebugBuild() = Build.TYPE == "userdebug" || Build.TYPE == "eng"

fun <T> permitDiskReads(func: () -> T): T {
return if (isDebugBuild()) {
Expand Down

0 comments on commit f500cb1

Please sign in to comment.