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

Commit 798e2d3d authored by Christian Mehlmauer's avatar Christian Mehlmauer Committed by Jean-Baptiste Queru
Browse files

Replaced /sdcard with Environment.getExternalStorageDirectory()

Change-Id: Id789f44a8569e307b1b7ab15eb266c9ce7ef2029
parent ae96f634
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -94,7 +94,8 @@ public final class Debug
    /**
     * Default trace file path and file
     */
    private static final String DEFAULT_TRACE_PATH_PREFIX = "/sdcard/";
    private static final String DEFAULT_TRACE_PATH_PREFIX =
        Environment.getExternalStorageDirectory().getPath() + "/";
    private static final String DEFAULT_TRACE_BODY = "dmtrace";
    private static final String DEFAULT_TRACE_EXTENSION = ".trace";
    private static final String DEFAULT_TRACE_FILE_PATH =
+3 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SqliteWrapper;
import android.net.Uri;
import android.os.Environment;
import android.telephony.SmsMessage;
import android.text.TextUtils;
import android.util.Config;
@@ -1526,7 +1527,8 @@ public final class Telephony {
             * which streams the captured image to the uri. Internally we write the media content
             * to this file. It's named '.temp.jpg' so Gallery won't pick it up.
             */
            public static final String SCRAP_FILE_PATH = "/sdcard/mms/scrapSpace/.temp.jpg";
            public static final String SCRAP_FILE_PATH =
                Environment.getExternalStorageDirectory().getPath() + "/mms/scrapSpace/.temp.jpg";
        }

        public static final class Intents {
+2 −1
Original line number Diff line number Diff line
@@ -85,7 +85,8 @@ public class SamplingProfilerIntegration {
            pending = true;
            snapshotWriter.execute(new Runnable() {
                public void run() {
                    String dir = "/sdcard/snapshots";
                    String dir =
                        Environment.getExternalStorageDirectory().getPath() + "/snapshots";
                    if (!dirMade) {
                        new File(dir).mkdirs();
                        if (new File(dir).isDirectory()) {