From 9ee39aca50551f93acc85fdb64279a60918b2294 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 30 Aug 2020 12:53:08 +0200 Subject: [PATCH] Extended connectivity logging --- app/src/main/java/eu/faircode/email/Log.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 9c5b879755..f742dcb011 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -1396,7 +1396,12 @@ public class Log { NetworkInfo ani = cm.getActiveNetworkInfo(); if (ani != null) - size += write(os, ani.toString() + " metered=" + cm.isActiveNetworkMetered() + "\r\n\r\n"); + size += write(os, ani.toString() + + " connected=" + ani.isConnected() + + " metered=" + cm.isActiveNetworkMetered() + + " roaming=" + ani.isRoaming() + + " type=" + ani.getType() + "/" + ani.getTypeName() + + "\r\n\r\n"); Network active = null; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) @@ -1404,7 +1409,8 @@ public class Log { for (Network network : cm.getAllNetworks()) { NetworkCapabilities caps = cm.getNetworkCapabilities(network); - size += write(os, (network.equals(active) ? "active=" : "network=") + network + " capabilities=" + caps + "\r\n\r\n"); + size += write(os, (network.equals(active) ? "active=" : "network=") + network + + " capabilities=" + caps + "\r\n\r\n"); } size += write(os, "VPN active=" + ConnectionHelper.vpnActive(context) + "\r\n\r\n");