File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,16 @@ public static File getSecureDataDirectory() {
9393 }
9494 }
9595
96+ /**
97+ * Return directory used for internal media storage, which is protected by
98+ * {@link android.Manifest.permission#WRITE_MEDIA_STORAGE}.
99+ *
100+ * @hide
101+ */
102+ public static File getMediaStorageDirectory () {
103+ return MEDIA_STORAGE_DIRECTORY ;
104+ }
105+
96106 /**
97107 * Returns whether the Encrypted File System feature is enabled on the device or not.
98108 * @return <code>true</code> if Encrypted File System feature is enabled, <code>false</code>
@@ -112,6 +122,10 @@ public static boolean isEncryptedFilesystemEnabled() {
112122 private static final File SECURE_DATA_DIRECTORY
113123 = getDirectory ("ANDROID_SECURE_DATA" , "/data/secure" );
114124
125+ /** @hide */
126+ private static final File MEDIA_STORAGE_DIRECTORY
127+ = getDirectory ("MEDIA_STORAGE" , "/data/media" );
128+
115129 private static final File EXTERNAL_STORAGE_DIRECTORY
116130 = getDirectory ("EXTERNAL_STORAGE" , "/storage/sdcard0" );
117131
You can’t perform that action at this time.
0 commit comments