[Bug] "Can't find system Files app" toast on Android 13
Closed this issue ยท 23 comments
Steps to reproduce
- Download Anemo from F-Droid (regular repo)
- Try to open app
- App displays toast: "Can't find system Files app"
Expectations
App should open and display the File Picker app
Reality
App cannot find the system files app, as indicated in the toast. Does not open.
App version
2.5.0
Android version
13 on Google Pixel 7 Pro
I've also attempted to install it from a different repo from F-Droid and also directly from the github page here with no difference in results. Rebooted phone, uninstalled, reinstalled after uninstalling and rebooting... I've even checked an earlier issue thread regarding the same problem, though that thread was closed in March, indicating that this might be a newer issue.
As a quick aside, I have an older phone on Android 11 (OnePlus 7 Pro) where the app works just fine. The standard Android file picker app is also available as a standalone, accessible app too, whereas on the Pixel there's only Google's file manager. I checked to see if the same file picker existed on A13 and it does, though it's not immediately accessible.
Hi, thanks for reporting this issue. Is the app visible from this "Google File Manager" app you mentioned?
Moreover could you please tell me what apps you see in the list of "Installed apps" (with "Show system" enabled) in the system Settings when you filter for "file"?
https://play.google.com/store/apps/details?id=com.google.android.apps.nbu.files&hl=en_US&gl=US
I should have included a link to the file manager in question earlier, my apologies. What I've referred to before has been linked above. Otherwise, yes, the Anemo app is visible from it, but it only displays the same toast as before when selected.
As for the apps in the search query, I see two apps appear: "Files" and "Files by Google." The second one being the aforementioned app linked above. The Files by Google app has an option to open it while the prior one does not.
I am having the same issue on samsung S21 ultra since installing android 13.
The update to 13 seems to have also borked F-droid as it'll say it's updating or downgrading an app but nothing will actually happen. You're not the dev so that's just context that might help
As for the apps in the search query, I see two apps appear: "Files" and "Files by Google."
It appears the app Anemo is looking for is installed (it's the first one with the blue and white icon), but I guess Google changed some internal name.
Are you by chance able to execute this adb command that generates a list of "activities" that are available for the Files app:
adb shell "dumpsys package | grep documents"
Alternatively, you could use this app https://play.google.com/store/apps/details?id=rk.android.app.shortcutmaker&hl=en_US&gl=US and send a screenshot of the list of activities for that "File" app (like here)
That'd help me add the new target so the app can work again, thanks
Sure thing, I'll get right on it
Here's what the adb command returned:
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
6f48d4e com.google.android.documentsui/com.android.documentsui.picker.PickActivity
6f48d4e com.google.android.documentsui/com.android.documentsui.picker.PickActivity
6f48d4e com.google.android.documentsui/com.android.documentsui.picker.PickActivity
66a6f81 com.google.android.documentsui/com.android.documentsui.files.FilesActivity
66a6f81 com.google.android.documentsui/com.android.documentsui.files.FilesActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
66a6f81 com.google.android.documentsui/com.android.documentsui.files.FilesActivity
66a6f81 com.google.android.documentsui/com.android.documentsui.files.FilesActivity
6f48d4e com.google.android.documentsui/com.android.documentsui.picker.PickActivity
6f48d4e com.google.android.documentsui/com.android.documentsui.picker.PickActivity
6f48d4e com.google.android.documentsui/com.android.documentsui.picker.PickActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
1666803 com.google.android.documentsui/com.android.documentsui.ScopedAccessActivity
6f48d4e com.google.android.documentsui/com.android.documentsui.picker.PickActivity
9548db9 com.google.android.documentsui/com.android.documentsui.selection.demo.SelectionDemoActivity
66a6f81 com.google.android.documentsui/com.android.documentsui.files.FilesActivity
5bc328b com.google.android.documentsui/com.android.documentsui.LauncherActivity
bcd82bd com.google.android.documentsui/com.android.documentsui.ViewDownloadsActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
ca9071e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
66a6f81 com.google.android.documentsui/com.android.documentsui.files.FilesActivity
66a6f81 com.google.android.documentsui/com.android.documentsui.files.FilesActivity
6f48d4e com.google.android.documentsui/com.android.documentsui.picker.PickActivity
6f48d4e com.google.android.documentsui/com.android.documentsui.picker.PickActivity
6f48d4e com.google.android.documentsui/com.android.documentsui.picker.PickActivity
5dd815f com.google.android.documentsui/com.android.documentsui.PackageReceiver
782d47b com.google.android.documentsui/com.android.documentsui.PreBootReceiver
7a74c75 com.google.android.documentsui/com.android.documentsui.roots.BootReceiver
82d3af1 com.google.android.documentsui/com.android.documentsui.archives.ArchivesProvider
bba3ab8 exe.bbllw8.anemo/.documents.provider.AnemoDocumentProvider
com.google.android.documentsui/com.android.documentsui.files.FilesActivity
com.google.android.documentsui/com.android.documentsui.files.FilesActivity
com.google.android.documentsui/com.android.documentsui.files.FilesActivity
com.google.android.documentsui/com.android.documentsui.files.FilesActivity
Permission [com.google.android.documentsui.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION] (6725582):
sourcePackage=com.google.android.documentsui
perm=PermissionInfo{9483493 com.google.android.documentsui.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION}
com.google.android.documentsui/com.android.documentsui.picker.PickCountRecordProvider:
Provider{f7830ca com.google.android.documentsui/com.android.documentsui.picker.PickCountRecordProvider}
com.google.android.documentsui/com.android.documentsui.archives.ArchivesProvider:
Provider{82d3af1 com.google.android.documentsui/com.android.documentsui.archives.ArchivesProvider}
com.google.android.documentsui/androidx.startup.InitializationProvider:
Provider{ef502f2 com.google.android.documentsui/androidx.startup.InitializationProvider}
com.google.android.documentsui/com.android.documentsui.picker.LastAccessedProvider:
Provider{8a88967 com.google.android.documentsui/com.android.documentsui.picker.LastAccessedProvider}
exe.bbllw8.anemo/.documents.provider.AnemoDocumentProvider:
Provider{bba3ab8 exe.bbllw8.anemo/.documents.provider.AnemoDocumentProvider}
[com.android.documentsui.archives]:
Provider{82d3af1 com.google.android.documentsui/com.android.documentsui.archives.ArchivesProvider}
applicationInfo=ApplicationInfo{a2d8818 com.google.android.documentsui}
[com.android.documentsui.pickCountRecord]:
Provider{f7830ca com.google.android.documentsui/com.android.documentsui.picker.PickCountRecordProvider}
applicationInfo=ApplicationInfo{3a977db com.google.android.documentsui}
[com.android.shell.documents]:
[com.android.mtp.documents]:
[com.android.traceur.documents]:
[exe.bbllw8.anemo.documents]:
Provider{bba3ab8 exe.bbllw8.anemo/.documents.provider.AnemoDocumentProvider}
[com.android.documentsui.lastAccessed]:
Provider{8a88967 com.google.android.documentsui/com.android.documentsui.picker.LastAccessedProvider}
applicationInfo=ApplicationInfo{cb98a43 com.google.android.documentsui}
[com.android.providers.downloads.documents]:
[com.android.externalstorage.documents]:
[com.termux.documents]:
[com.google.android.documentsui.androidx-startup]:
Provider{ef502f2 com.google.android.documentsui/androidx.startup.InitializationProvider}
applicationInfo=ApplicationInfo{f84abc0 com.google.android.documentsui}
[com.android.providers.media.documents]:
[com.example.documents]:
[com.google.android.documentsui.theme.pixel]
[com.google.android.documentsui]
queriesPackages=[com.android.documentsui, com.google.android.documentsui]
Package [com.google.android.documentsui.theme.pixel] (8109a79):
pkg=Package{b8d3be com.google.android.documentsui.theme.pixel}
dataDir=/data/user/0/com.google.android.documentsui.theme.pixel
overlayTarget=com.google.android.documentsui
Package [com.google.android.documentsui] (7ffe275):
pkg=Package{a71420a com.google.android.documentsui}
codePath=/data/app/~~rrEKntugsdEpqY0Uoqq0PQ==/com.google.android.documentsui-XFXPyaasOlRJYjYkAsqPVQ==
resourcePath=/data/app/~~rrEKntugsdEpqY0Uoqq0PQ==/com.google.android.documentsui-XFXPyaasOlRJYjYkAsqPVQ==
legacyNativeLibraryDir=/data/app/~~rrEKntugsdEpqY0Uoqq0PQ==/com.google.android.documentsui-XFXPyaasOlRJYjYkAsqPVQ==/lib
dataDir=/data/user/0/com.google.android.documentsui
com.google.android.documentsui.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION: prot=signature, INSTALLED
com.google.android.documentsui.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION: granted=true
com.android.documentsui.LauncherActivity
com.android.documentsui.ViewDownloadsActivity
Package [com.google.android.documentsui] (6db0bd4):
pkg=Package{2d6d17d com.google.android.documentsui}
dataDir=/data/user/0/com.google.android.documentsui
com.google.android.documentsui.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION: prot=signature
com.google.android.documentsui.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION: granted=true
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui:
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
[com.google.android.documentsui.theme.pixel]
[com.google.android.documentsui]
path: /data/app/~~rrEKntugsdEpqY0Uoqq0PQ==/com.google.android.documentsui-XFXPyaasOlRJYjYkAsqPVQ==/base.apk
[com.google.android.documentsui.theme.pixel]
[com.google.android.documentsui]
appPackageName=com.google.android.documentsui appIcon=false appLabel=Google Play system update```
IDK if you wanted a dump from me as well but here's mine
PS D:\Downloads\Tools\platform-tools> .\adb shell "dumpsys package | grep documents"
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
85b0e60 com.google.android.documentsui/com.android.documentsui.picker.PickActivity
85b0e60 com.google.android.documentsui/com.android.documentsui.picker.PickActivity
85b0e60 com.google.android.documentsui/com.android.documentsui.picker.PickActivity
7fdcadb com.google.android.documentsui/com.android.documentsui.files.FilesActivity
7fdcadb com.google.android.documentsui/com.android.documentsui.files.FilesActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
7fdcadb com.google.android.documentsui/com.android.documentsui.files.FilesActivity
7fdcadb com.google.android.documentsui/com.android.documentsui.files.FilesActivity
85b0e60 com.google.android.documentsui/com.android.documentsui.picker.PickActivity
85b0e60 com.google.android.documentsui/com.android.documentsui.picker.PickActivity
85b0e60 com.google.android.documentsui/com.android.documentsui.picker.PickActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
d1dd88d com.google.android.documentsui/com.android.documentsui.ScopedAccessActivity
85b0e60 com.google.android.documentsui/com.android.documentsui.picker.PickActivity
c98ba53 com.google.android.documentsui/com.android.documentsui.selection.demo.SelectionDemoActivity
7fdcadb com.google.android.documentsui/com.android.documentsui.files.FilesActivity
1c803d5 com.google.android.documentsui/com.android.documentsui.LauncherActivity
10439b7 com.google.android.documentsui/com.android.documentsui.ViewDownloadsActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
aebde7e exe.bbllw8.anemo/.documents.receiver.ReceiverActivity
7fdcadb com.google.android.documentsui/com.android.documentsui.files.FilesActivity
7fdcadb com.google.android.documentsui/com.android.documentsui.files.FilesActivity
85b0e60 com.google.android.documentsui/com.android.documentsui.picker.PickActivity
85b0e60 com.google.android.documentsui/com.android.documentsui.picker.PickActivity
85b0e60 com.google.android.documentsui/com.android.documentsui.picker.PickActivity
d1c7089 com.google.android.documentsui/com.android.documentsui.PackageReceiver
2528c45 com.google.android.documentsui/com.android.documentsui.PreBootReceiver
8eaa8af com.google.android.documentsui/com.android.documentsui.roots.BootReceiver
86f5718 exe.bbllw8.anemo/.documents.provider.AnemoDocumentProvider
dc320cb com.google.android.documentsui/com.android.documentsui.archives.ArchivesProvider
Permission [com.google.android.documentsui.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION] (dacd276):
sourcePackage=com.google.android.documentsui
perm=PermissionInfo{7f9c077 com.google.android.documentsui.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION}
com.google.android.documentsui/com.android.documentsui.picker.PickCountRecordProvider:
Provider{a842031 com.google.android.documentsui/com.android.documentsui.picker.PickCountRecordProvider}
com.google.android.documentsui/com.android.documentsui.archives.ArchivesProvider:
Provider{dc320cb com.google.android.documentsui/com.android.documentsui.archives.ArchivesProvider}
com.google.android.documentsui/androidx.startup.InitializationProvider:
Provider{354bffe com.google.android.documentsui/androidx.startup.InitializationProvider}
com.google.android.documentsui/com.android.documentsui.picker.LastAccessedProvider:
Provider{d27578c com.google.android.documentsui/com.android.documentsui.picker.LastAccessedProvider}
exe.bbllw8.anemo/.documents.provider.AnemoDocumentProvider:
Provider{86f5718 exe.bbllw8.anemo/.documents.provider.AnemoDocumentProvider}
[com.android.documentsui.archives]:
Provider{dc320cb com.google.android.documentsui/com.android.documentsui.archives.ArchivesProvider}
applicationInfo=ApplicationInfo{736fc1e com.google.android.documentsui}
[com.android.documentsui.pickCountRecord]:
Provider{a842031 com.google.android.documentsui/com.android.documentsui.picker.PickCountRecordProvider}
applicationInfo=ApplicationInfo{1ad38e com.google.android.documentsui}
[com.android.shell.documents]:
[com.android.mtp.documents]:
[com.android.traceur.documents]:
[exe.bbllw8.anemo.documents]:
Provider{86f5718 exe.bbllw8.anemo/.documents.provider.AnemoDocumentProvider}
[com.dropbox.product.android.dbapp.document_provider.documents]:
[com.android.documentsui.lastAccessed]:
Provider{d27578c com.google.android.documentsui/com.android.documentsui.picker.LastAccessedProvider}
applicationInfo=ApplicationInfo{1e81273 com.google.android.documentsui}
[com.android.providers.downloads.documents]:
[com.android.externalstorage.documents]:
[com.google.android.documentsui.androidx-startup]:
Provider{354bffe com.google.android.documentsui/androidx.startup.InitializationProvider}
applicationInfo=ApplicationInfo{4dac027 com.google.android.documentsui}
[com.android.providers.media.documents]:
[com.example.documents]:
[com.google.android.overlay.modules.documentsui]
[com.google.android.documentsui]
queriesPackages=[com.android.documentsui, com.google.android.documentsui]
Package [com.google.android.overlay.modules.documentsui] (298c519):
pkg=Package{6d0024c com.google.android.overlay.modules.documentsui}
dataDir=/data/user/0/com.google.android.overlay.modules.documentsui
overlayTarget=com.google.android.documentsui
Package [com.google.android.documentsui] (9126ee6):
pkg=Package{645d6d3 com.google.android.documentsui}
codePath=/data/app/~~jyLne1YhNzWgyydjKHS_jQ==/com.google.android.documentsui-cW6ljadx9uRBcPlL3JSHIg==
resourcePath=/data/app/~~jyLne1YhNzWgyydjKHS_jQ==/com.google.android.documentsui-cW6ljadx9uRBcPlL3JSHIg==
legacyNativeLibraryDir=/data/app/~~jyLne1YhNzWgyydjKHS_jQ==/com.google.android.documentsui-cW6ljadx9uRBcPlL3JSHIg==/lib
dataDir=/data/user/0/com.google.android.documentsui
com.google.android.documentsui.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION: prot=signature, INSTALLED
com.google.android.documentsui.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION: granted=true
com.android.documentsui.LauncherActivity
Package [com.google.android.documentsui] (cad4ee5):
pkg=Package{df28dba com.google.android.documentsui}
dataDir=/data/user/0/com.google.android.documentsui
com.google.android.documentsui.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION: prot=signature
com.google.android.documentsui.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION: granted=true
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui:
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
com.google.android.documentsui
[com.google.android.overlay.modules.documentsui]
[com.google.android.documentsui]
path: /data/app/~~jyLne1YhNzWgyydjKHS_jQ==/com.google.android.documentsui-cW6ljadx9uRBcPlL3JSHIg==/base.apk
[com.google.android.overlay.modules.documentsui]
[com.google.android.documentsui]
[com.google.android.documentsui]
path: /data/app/~~jyLne1YhNzWgyydjKHS_jQ==/com.google.android.documentsui-cW6ljadx9uRBcPlL3JSHIg==/base.apk
path: /data/app/~~jyLne1YhNzWgyydjKHS_jQ==/com.google.android.documentsui-cW6ljadx9uRBcPlL3JSHIg==/split_config.xxhdpi.apk
Hi, quick update: I haven't forgotten about this, but after digging into this issue it seems that in certain Android 13 versions, Google has disabled third party apps from accessing the DocumentsUI (system files app) file navigation user interface in order to favour their "Google Files" application as part of the Google Apps package manufacturer include in their devices.
This means that I'd have to implement a "file navigation" feature on my own since it's not possible to rely on the OS reliably providing that anymore. I'm sorry, but this will take some time and I don't have any temporary workaround that doesn't involve modifying the ROM to offer.
Hey that's perfectly fine. Sucks that they would do that though, especially considering how their Google Files app has some trackers and other nonsense in it (trackers in a file browser??). Thanks for the update!
Hi! I'm affected by this issue too. Can anyone point me to where I can complain about this? I feel like Google betrayed me for the umpteenth time with more and more unwanted and uncalled for restrictions.
Hello, I think there may still be a way to do this. "Files" by "Marc apps & software" in the Google Play Store also invokes DocumentsUI and it operates as normal on my Android 13 Xperia phone while your app throws that toast error.
Edit to add: Ghost Commander can view and open Files (DocumentsUI) shortcuts and intent activities so this should still be possible via shortcuts and intents. This way always opens Files at the Downloads provider view whereas Marc has figured a way to open to the main internal storage view. But I don't see evidence Google has broken access to Files.
Hello, I think there may still be a way to do this. "Files" by "Marc apps & software" in the Google Play Store also invokes DocumentsUI and it operates as normal on my Android 13 Xperia phone while your app throws that toast error.
Thanks for this suggestion. I've given a look at that app and tried to implement a fix for this issue based on the code of that app.
It makes use of some undocumented APIs, this means it might break in future Android versions, but for now it should be ok.
Could you please test the
apk in this zip and let me know if it works now?
If so, I can upload the fix and release a new version for everyone
Hi @2bllw8. Just tested this apk on my Android 5.10.66, it is still showing the toast. However, earlier this week when I had the same issue, I factory-reset my phone and the version that's available on F-Droid worked perfectly for some days until it stopped working all of a sudden; I didn't do any system update, so I think maybe it's related to some instant app installing itself.
I have a Samsung A33, UI v5, Android 13, last system update November 1st, 2022, last security patch October 1st, 2022 (almost sure everything's at factory settings).
I've attempted to use the apk in the zip provided to no avail, the same toast still appears. Made sure to uninstall and remove any traces of the original instance I already had installed before installing this one too, just to be sure.
Thanks for this suggestion. I've given a look at that app and tried to implement a fix for this issue based on the code of that app. It makes use of some undocumented APIs, this means it might break in future Android versions, but for now it should be ok.
Could you please test the apk in this zip and let me know if it works now? If so, I can upload the fix and release a new version for everyone
I wondered if Marc was doing something undocumented. Older versions of that app would invoke an open-with dialogue populated by Files (AOSP) and Files (by Google, Samsung, whatever) until you set the default. Sometimes you had to disable the OEM Files app to clear the preset defaults and be allowed to choose Files (AOSP). I assumed it was somehow calling Settings > Storage > Files. But now in A13 'Files' is not an option anymore. Weird choice, even for Mr "what is structured local storage and why do you think you want it" Google in my opinion.
Anyway A) your test app did not work for me on a Pixel, and B) it's still possible to make a shortcut to DocumentsUI activity "Downloads" so that could be a backup plan.
By the way, Shelter uses the intent below. It works, but will open the root of the Downloads provider rather than the root of primary storage.
EDIT: after some research I think it's generally more correct to use mime "vnd.android.document/directory" and not "/root" but this looks to be a trick to prevent some other file managers from offering to handle the intent.
intent:#Intent;type=vnd.android.document/root;launchFlags=0x3000000;end
ACTION: android.intent.action.VIEW
MIME: vnd.android.document/root
URI: intent:#Intent;type=vnd.android.document/root;launchFlags=0x3000000;end
FLAGS:
FLAG_ACTIVITY_FORWARD_RESULT
FLAG_ACTIVITY_PREVIOUS_IS_TOP
MATCHING ACTIVITIES:
Files (com.google.android.documentsui - com.android.documentsui.files.FilesActivity)
Interceptor (io.github.muntashirakon.AppManager - io.github.muntashirakon.AppManager.intercept.ActivityInterceptor)
Thanks everyone who reported back their findings, I've made a new test version. Let me know if this one is working for you
app-release.apk.zip
Unfortunately this issue can't be reproduced on the official emulator images, nor I have a device with Android 13 to verify whether or not it works on my own. Thank you for helping with this again
It works for me! Samsung A33, UI v5, Android 13 with kernel 5.10.66, last system update November 1st, 2022, last security patch October 1st, 2022.
Just downloaded and tested it out for myself as well. Works just fine!
This is from a Pixel 7 Pro with Android 13 (Kernel 5.10.107, last update Nov 1, 2022, security update Jan 5, 2023)
Work for me too.
On Pixel 6 pro under Grapheneos (latest stable) - A13
Thanks for the work โค๏ธ๐
Thanks everyone for the help, enjoy the newest 2.6.0 release that includes the bug fix for this and a new feature as well
Thanks for your efforts! By the way, I discovered an intent format that actually opens DocumentsUI with a specific (shared storage) folder path! I'll paste it here because I'm excited but I suspect your app doesn't really need to do that. Syncthing on the other hand...
The below can invoke DocumentsUI and have it open DCIM/Camera:
URI intent://com.android.externalstorage.documents/document/primary%3ADCIM%2FCamera#Intent;scheme=content;type=vnd.android.document/directory;launchFlags=0x23000000;end
VERSION 1
ACTION android.intent.action.VIEW
DATA content://com.android.externalstorage.documents/document/primary%3ADCIM%2FCamera
TYPE vnd.android.document/directory
FLAGS 0x23000000MATCHING ACTIVITIES 4
0 LABEL Files
NAME com.android.documentsui.files.FilesActivity
PACKAGE com.google.android.documentsui
1 LABEL Intent Intercept
NAME uk.co.ashtonbrsc.intentexplode.Explode
PACKAGE de.k3b.android.intentintercept
2 LABEL Interceptor
NAME io.github.muntashirakon.AppManager.intercept.ActivityInterceptor
PACKAGE io.github.muntashirakon.AppManager
3 LABEL Material Files
NAME me.zhanghai.android.files.filelist.FileListActivity
PACKAGE me.zhanghai.android.files