Kanbaru π (one hikari of too many)
(replying to Kanbaru π (one hikari of too many))
by the way, the solution to the same problem on iOS is just:
"UIFileSharingEnabled": true,
it's existed for thirteen years, it doesn't require any code, and it supports normal fucking POSIX filesystem APIs
Kanbaru π (one hikari of too many)
(replying to Kanbaru π (one hikari of too many))
this is made all the more confusing by the fact newer Android versions still use the βfileβ and βfile managerβ metaphor in user-facing text, and there is a long list of exceptions that make it very hard to make general statements. many users will not have noticed the change.
Kanbaru π (one hikari of too many)
(replying to Kanbaru π (one hikari of too many))
in Android 11, Google fundamentally changed what a file is and what a file manager does, without communicating this to users. we as app developers are left to pick up the pieces, desperately trying to explain this incomprehensible system to users who think we're gaslighting them.
Kanbaru π (one hikari of too many)
(replying to Kanbaru π (one hikari of too many))
btw while Google were reinventing the filesystem they created a new URI scheme for βcontentβ that is apparently unusable for the most important application of URIs, namely hyperlinks. opening βcontent://org.touchhle.android.provider/β brings upβ¦ the Messages app??? what the fuck
Kanbaru π (one hikari of too many)
(replying to Kanbaru π (one hikari of too many))
ok never mind, it's just βcontent://org.touchhle.android.provider/root/rootβ. allegedly this only works on some devices but look, that's almost a normal URI. do not ask me why it opens Messages if i get the path wrong
Kanbaru π (one hikari of too many)
(replying to Kanbaru π (one hikari of too many))
btw adb shell am to-uri and adb shell am start-activity are extremely useful.
also in case you didn't believe me about the file manager not being a file manager: its true name is com.android.documentsui