mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-23 00:06:27 +00:00
Debug info: moved mount points to environment
This commit is contained in:
parent
f0f70c97cb
commit
d756db14a7
1 changed files with 20 additions and 19 deletions
|
@ -1924,25 +1924,6 @@ public class Log {
|
||||||
|
|
||||||
sb.append("\r\n");
|
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);
|
WindowManager wm = Helper.getSystemService(context, WindowManager.class);
|
||||||
Display display = wm.getDefaultDisplay();
|
Display display = wm.getDefaultDisplay();
|
||||||
Point dim = new Point();
|
Point dim = new Point();
|
||||||
|
@ -2689,6 +2670,26 @@ public class Log {
|
||||||
}
|
}
|
||||||
size += write(os, "\r\n");
|
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",
|
size += write(os, String.format("Configuration: %s\r\n\r\n",
|
||||||
context.getResources().getConfiguration()));
|
context.getResources().getConfiguration()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue