1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 15:55:57 +00:00

Debug info: moved mount points to environment

This commit is contained in:
M66B 2022-06-14 15:22:39 +02:00
parent f0f70c97cb
commit d756db14a7

View file

@ -1924,25 +1924,6 @@ public class Log {
sb.append("\r\n");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
try {
for (FileStore store : FileSystems.getDefault().getFileStores())
if (!store.isReadOnly() &&
store.getUsableSpace() != 0 &&
!"tmpfs".equals(store.type())) {
long total = store.getTotalSpace();
long unalloc = store.getUnallocatedSpace();
sb.append(String.format("%s %s %s/%s\r\n",
store,
store.type(),
Helper.humanReadableByteCount(total - unalloc),
Helper.humanReadableByteCount(total)));
}
sb.append("\r\n");
} catch (IOException ex) {
sb.append(ex).append("\r\n");
}
WindowManager wm = Helper.getSystemService(context, WindowManager.class);
Display display = wm.getDefaultDisplay();
Point dim = new Point();
@ -2689,6 +2670,26 @@ public class Log {
}
size += write(os, "\r\n");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
try {
for (FileStore store : FileSystems.getDefault().getFileStores())
if (!store.isReadOnly() &&
store.getUsableSpace() != 0 &&
!"tmpfs".equals(store.type())) {
long total = store.getTotalSpace();
long unalloc = store.getUnallocatedSpace();
size += write(os, String.format("%s %s %s/%s\r\n",
store,
store.type(),
Helper.humanReadableByteCount(total - unalloc),
Helper.humanReadableByteCount(total)));
}
} catch (IOException ex) {
size += write(os, String.format("%s\r\n", ex));
}
size += write(os, "\r\n");
}
size += write(os, String.format("Configuration: %s\r\n\r\n",
context.getResources().getConfiguration()));