Bring back external attachment storage

This commit is contained in:
M66B
2023-12-20 13:00:29 +01:00
parent ee754dcace
commit 406486cc05
10 changed files with 146 additions and 16 deletions

View File

@@ -57,6 +57,7 @@ import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Debug;
import android.os.Environment;
import android.os.IBinder;
import android.os.LocaleList;
import android.os.PowerManager;
@@ -1647,6 +1648,10 @@ public class DebugHelper {
ai.sourceDir, ai.publicSourceDir));
size += write(os, String.format("Files: %s\r\n", context.getFilesDir()));
File external = Helper.getExternalFilesDir(context);
boolean emulated = (external != null && Environment.isExternalStorageEmulated(external));
size += write(os, String.format("External: %s emulated: %b\r\n", external, emulated));
size += write(os, String.format("Cache: %s\r\n external: %s\n",
context.getCacheDir(), context.getExternalCacheDir()));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)