1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Added OS version to debug info

This commit is contained in:
M66B 2022-01-17 19:13:41 +01:00
parent bb6d702592
commit 7413d87eb5

View file

@ -1796,6 +1796,13 @@ public class Log {
sb.append("\r\n");
String osVersion = null;
try {
osVersion = System.getProperty("os.version");
} catch (Throwable ex) {
Log.e(ex);
}
// Get device info
sb.append(String.format("Brand: %s\r\n", Build.BRAND));
sb.append(String.format("Manufacturer: %s\r\n", Build.MANUFACTURER));
@ -1808,6 +1815,7 @@ public class Log {
sb.append(String.format("Id: %s\r\n", Build.ID));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S)
sb.append(String.format("SoC: %s/%s\r\n", Build.SOC_MANUFACTURER, Build.SOC_MODEL));
sb.append(String.format("OS version: %s\r\n", osVersion));
sb.append(String.format("uid: %d\r\n", android.os.Process.myUid()));
sb.append("\r\n");