Unable to import files in newer versions of Android TV app

Alan Matthews <[email protected]> Thu, 29 Jan 2026 14:47:05 -0600
Newsgroups com.zx2c4.lists.wireguard
Message-ID <CADrPR12g-qXpwK0qPeB9Ljj_-afOuGUQJG3D4pEmBkgUrgJUpQ@mail.gmail.com>
Attempting to import a client config file results in the message
"Please install a file management utility to browse files" on my
device running Fire OS 8 (Android TV 11 based).

This is likely due to commit 67db72a (TvMainActivity: use OpenDocument
instead of GetContent), as it occurs with v1.0.20260102, but not with
v1.0.20250515.

According to the documentation[1]: "Third-party apps can't respond to
an intent with the ACTION_OPEN_DOCUMENT action. Instead, the system
receives this
intent and displays all the files available from various apps in a
unified user interface."

My device does not appear to have a first-party file picker, which
would explain why OpenDocument does not work.

The commit mentions that the change was necessary for Android TV 14
(is it actually?), but regardless there should be a fallback to
GetContent if OpenDocument fails.

[1] https://developer.android.com/guide/components/intents-common#OpenFile