Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 070e1454 authored by Sergey Nikolaienkov's avatar Sergey Nikolaienkov
Browse files

Restrict initial location for ACTION_OPEN_DOCUMENT/_TREE

Implement privacy restriction introduced in Android 11 that application
are not allowed to request initial location for intent actions
ACTION_OPEN_DOCUMENT and ACTION_OPEN_DOCUMENT_TREE to be /Android/data/,
/Android/obb/, /Android/sandbox/ and all their subdirectories.
If an application does request the initial location to be one of these
directories (or their subdirs) redirect to the default location - last
accessed stack.

Bug: 200034476
Bug: 220066255
Test: atest
  DocumentsUIGoogleTests:com.android.documentsui.picker.ActionHandlerTest
Test: adb shell am start
  -a android.intent.action.OPEN_DOCUMENT_TREE
  --eu android.provider.extra.INITIAL_URI
  "content://com.android.externalstorage.documents/document/primary%3AAndroid%2Fdata"
Change-Id: I7e31a8fb76b5ddb0e3af67852b1e1ccc9a825648
parent dc1093f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment