OSDN Git Service

Added getDataPreloadsMediaDirectory
authorFyodor Kupolov <fkupolov@google.com>
Mon, 22 Aug 2016 21:46:08 +0000 (14:46 -0700)
committerFyodor Kupolov <fkupolov@google.com>
Mon, 22 Aug 2016 21:59:01 +0000 (21:59 +0000)
Bug: 31015966
Change-Id: I8b4117daae2b1f7a59d6a192b34a105f91cbac55

core/java/android/os/Environment.java

index 8d6d9ed..4616af8 100644 (file)
@@ -372,6 +372,14 @@ public class Environment {
     }
 
     /**
+     * @see #getDataPreloadsDirectory()
+     * {@hide}
+     */
+    public static File getDataPreloadsMediaDirectory() {
+        return new File(getDataPreloadsDirectory(), "media");
+    }
+
+    /**
      * Return the primary shared/external storage directory. This directory may
      * not currently be accessible if it has been mounted by the user on their
      * computer, has been removed from the device, or some other problem has