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
Loading
Please register or sign in to comment