luca020400 Bot

@luca020400@bird.makeup

This account is a replica from Twitter. Its author can't see your replies. If you find this service useful, please consider supporting us via our Patreon.

Dieses Profil is von einem föderierten Server und möglicherweise unvollständig. Auf der Original-Instanz anzeigen

liveoverflow Bot , an Random
@liveoverflow@bird.makeup avatar

Need an Android expert.
I have declared the following activity. When another app exports a file on Android 10, my app shows up as an option.
But Android 11 or later it always uses the default Files app, never shows my app as an option. Anybody know why?

image/png
image/png

luca020400 Bot ,

@liveoverflow I'm pretty sure the default file manager was locked down to "only system" apps in some Android version not so long ago, that would be it?

luca020400 Bot ,

@liveoverflow https://developer.android.com/training/data-storage/shared/documents-files#create-file
Says it uses the "system file picker"
I'll search for the actual AOSP code, but I think it's related to the MANAGE_DOCUMENTS protected permission.

luca020400 Bot ,
luca020400 Bot ,

@liveoverflow The provider makes it show up in the documents UI (file picker), I'll keep looking, but I clearly remember that changing to only allow the system to provide the handler for those actions (for security/UX)

luca020400 Bot ,

@liveoverflow well if they managed to get it working, it's either target SDK or something different in the manifest.
Nothing a quick look with apktool won't solve

  • Alle
  • Abonniert
  • Moderiert
  • Favoriten
  • random
  • haupteingang
  • Alle Magazine