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

Commit cae22d83 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Give DefaultContainerService all external storage." into jb-mr1-dev

parents f5736aa5 dfa45309
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -33,6 +33,9 @@ public class Environment {
    private static final String ENV_EXTERNAL_STORAGE = "EXTERNAL_STORAGE";
    private static final String ENV_EMULATED_STORAGE_TARGET = "EMULATED_STORAGE_TARGET";

    /** {@hide} */
    public static String DIRECTORY_ANDROID = "Android";

    private static final File ROOT_DIRECTORY
            = getDirectory("ANDROID_ROOT", "/system");

@@ -111,11 +114,11 @@ public class Environment {
                // /storage/sdcard0
                mExternalStorage = new File(rawExternalStorage);
                // /storage/sdcard0/Android/obb
                mExternalStorageAndroidObb = buildPath(mExternalStorage, "Android", "obb");
                mExternalStorageAndroidObb = buildPath(mExternalStorage, DIRECTORY_ANDROID, "obb");
            }

            mExternalStorageAndroidData = buildPath(mExternalStorage, "Android", "data");
            mExternalStorageAndroidMedia = buildPath(mExternalStorage, "Android", "media");
            mExternalStorageAndroidData = buildPath(mExternalStorage, DIRECTORY_ANDROID, "data");
            mExternalStorageAndroidMedia = buildPath(mExternalStorage, DIRECTORY_ANDROID, "media");
        }

        public File getExternalStorageDirectory() {
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
    <uses-permission android:name="android.permission.ASEC_MOUNT_UNMOUNT"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_CACHE_FILESYSTEM" />
    <uses-permission android:name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" />

    <application android:label="@string/service_name"
                 android:allowBackup="false">