It is pretty easy to open a file from download folder, if you let user pick it via Intent. You get the uri and use

contentResolver.openInputStream(uri)?.use { inputStream ->
                    val content = inputStream.bufferedReader().use { it.readText() }
                    Log.d("log", "opened file: $content")
                }

But I need to open file without user interaction, just via the filename - it is in download folder. Is it possible on Android 11 and higher? It was not downloaded, not created by the app, it was just copied there via aby file manager.

Source: View source