Commit 7e84b279 authored by Risan's avatar Risan Committed by Commit Bot

Change Android MediaStore path for MyFiles

Changing it to /storage/MyFiles-read, which provides a readable view of
the MyFiles from app with WRITE_EXTERNAL_STORAGE permission.

BUG=b:162791183
TEST=Photos can see file changes.

Change-Id: Ibdb218f426339bf14fc8a571581a86c7849153ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2359595Reviewed-by: default avatarYusuke Sato <yusukes@chromium.org>
Reviewed-by: default avatarSatoshi Niwa <niwa@chromium.org>
Commit-Queue: Risan <risan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800017}
parent d6462ea0
......@@ -50,13 +50,15 @@ constexpr base::FilePath::CharType kAndroidDownloadDir[] =
FILE_PATH_LITERAL("/storage/emulated/0/Download");
// The MyFiles path inside ARC container. This will be the path that is used in
// MediaScanner.scanFile request.
// MediaScanner.scanFile request. MediaScanner scans MyFiles under
// /storage/MyFiles-read instead of /storage/MyFiles because non-system apps has
// no access to /storage/MyFiles.
constexpr base::FilePath::CharType kAndroidMyFilesDir[] =
FILE_PATH_LITERAL("/storage/MyFiles");
FILE_PATH_LITERAL("/storage/MyFiles-read");
// The path for Downloads under MyFiles inside ARC container.
constexpr base::FilePath::CharType kAndroidMyFilesDownloadsDir[] =
FILE_PATH_LITERAL("/storage/MyFiles/Downloads/");
FILE_PATH_LITERAL("/storage/MyFiles-read/Downloads/");
// The removable media path inside ARC container. This will be the path that
// is used in MediaScanner.scanFile request.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment