Merge branch 'android13' of https://github.com/seedvault-app/seedvault into lineage-20.0

* 'android13' of https://github.com/seedvault-app/seedvault:
  Bump version to 13-3.3
  Mark Nextcloud as not recommended
  Warn before turning off backups
  Always start a new RestoreSet when initializing the device
  Translated using Weblate (English (Australia))
  Translated using Weblate (Italian)
  Translated using Weblate (Hebrew)
  Translated using Weblate (Russian)
  Translated using Weblate (Ukrainian)
  Translated using Weblate (German)
  Translated using Weblate (Turkish)
  Translated using Weblate (Spanish)
  Translated using Weblate (German)
  Translated using Weblate (Chinese (Simplified))
  Translated using Weblate (Lithuanian)
  Pre-grant ACCESS_MEDIA_LOCATION permission
  Show foreground notification right away when doing manual backup
  Bump version to 13-3.2 (#487)
  gh-actions: Upload debug apks as artifacts
  Translated using Weblate (Greek)
  Translated using Weblate (French (Canada))
  Translated using Weblate (Portuguese (Portugal))
  Translated using Weblate (Lithuanian)
  Translated using Weblate (Korean)
  Translated using Weblate (German)
  Translated using Weblate (Georgian)
  Translated using Weblate (Spanish)
  Translated using Weblate (Spanish (American))
  Translated using Weblate (Portuguese (Brazil))
  Translated using Weblate (Vietnamese)
  Translated using Weblate (French)
  Translated using Weblate (French)
  Translated using Weblate (Catalan)
  Translated using Weblate (Russian)
  Translated using Weblate (Czech)
  Translated using Weblate (Italian)
  Translated using Weblate (Vietnamese)
  Translated using Weblate (Greek)
  Translated using Weblate (Spanish)
  Translated using Weblate (Arabic)
  Translated using Weblate (Chinese (Simplified))
  Translated using Weblate (Hebrew)
  Translated using Weblate (German)
  Translated using Weblate (Turkish)
  Translated using Weblate (Marathi)
  Translated using Weblate (Norwegian Bokmål)
  Translated using Weblate (Japanese)
  Added translation using Weblate (Asturian)
  Update permissions for log feature
  Remove some code warnings
  Add expert option to save logs
  Remove permission requirement in a better way for debug builds
  RecoveryCode: Allow screenshots on debug builds (#446)

Change-Id: I713707c404fce0f952691e1f26398c284464cadf
diff --git a/app/src/main/java/com/stevesoltys/seedvault/App.kt b/app/src/main/java/com/stevesoltys/seedvault/App.kt
index 69d3b6d..276ed6f 100644
--- a/app/src/main/java/com/stevesoltys/seedvault/App.kt
+++ b/app/src/main/java/com/stevesoltys/seedvault/App.kt
@@ -122,8 +122,7 @@
 const val ANCESTRAL_RECORD_KEY = "@ancestral_record@"
 const val GLOBAL_METADATA_KEY = "@meta@"
 
-// TODO this doesn't work for LineageOS as they do public debug builds
-fun isDebugBuild() = Build.TYPE == "userdebug"
+fun isDebugBuild() = Build.TYPE == "eng"
 
 fun <T> permitDiskReads(func: () -> T): T {
     return if (isDebugBuild()) {