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

Commit 280af51c authored by Chris Soyars's avatar Chris Soyars Committed by Steve Kondik
Browse files

Added SD_EXT_DIRECTORY environment variable.

parent 83f444c2
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -36,6 +36,9 @@ public class Environment {
    private static final File DATA_DIRECTORY
            = getDirectory("ANDROID_DATA", "/data");

    private static final File = SD_EXT_DIRECTORY
            = getDirectory("SD_EXT_DIRECTORY", "/sd-ext");

    private static final File EXTERNAL_STORAGE_DIRECTORY
            = getDirectory("EXTERNAL_STORAGE", "/sdcard");

@@ -49,6 +52,14 @@ public class Environment {
        return DATA_DIRECTORY;
    }

    /**
     * Gets the SD EXT directory.
     * @hide
     */
    public static File getDataDirectory() {
        return SD_EXT_DIRECTORY;
    }

    /**
     * Gets the Android external storage directory.
     */