Using Environment.isExternalStorageLegacy() does what I need. I tested it on Android 10 with request/preserveLegacyExternalStorage and without. Without, you cannot access databases outside of app specific storage and SAF is required to access documents outside of the app.