To open a specific folder w/o any file manager

94 views
Skip to first unread message

Ahmet K

unread,
Jan 18, 2024, 12:32:01 AM1/18/24
to Automate for Android
The shortcut below opens the downloads folder.

Action=        android.intent.action.MAIN
Package=    com.google.android.documentsui
Class=         com.google.android.documentsui/com.android.documentsui.files.FilesActivity

Even though I wrote the following statements in the DataURI section to open a specific folder instead of the Downloads folder, I was not successful:

Data URI=
/storage/emulated/0/files/
OR
/storage/emulated/0/files
OR
content://com.android.externalstorage.documents/document/primary%3Afiles
OR
content://com.android.externalstorage.documents/document/primary%3Afiles/

Anyone have any idea? 

Henrik "The Developer" Lindqvist

unread,
Jan 18, 2024, 7:38:23 AM1/18/24
to Automate for Android
The URI goes into an extra, e.g.:
  • Action: Open document
  • MIME-type: */*
  • Extras= { "android.provider.extra.INITIAL_URI" as Uri: "content://com.android.externalstorage.documents/document/primary%3Afiles" }
In the next release v1.42.0 the fileUri will likely get a "d" flag to return a document URI.

Ahmet K

unread,
Jan 18, 2024, 9:02:58 AM1/18/24
to Automate
I tried two situaton.
error.png
error2.png

Henrik "The Developer" Lindqvist

unread,
Jan 18, 2024, 9:10:57 AM1/18/24
to Automate for Android
The first error is likely cause by some copy & paste issue, try writing it manually.
The seconds error is likely cause by your flow using MIME-type *.* instead of */*

On Thursday, January 18, 2024 at 3:02:58 PM UTC+1 ahka...@gmail.com wrote:
I tried two situaton.

phonetus tus

unread,
Sep 3, 2025, 9:54:48 PM (2 days ago) Sep 3
to Automate for Android
Is there a new easy way to open a folder? 
Reply all
Reply to author
Forward
0 new messages