mirror of https://github.com/M66B/NetGuard.git
Added WiFi debug indication
This commit is contained in:
parent
557397bd39
commit
39442fe1b7
|
@ -184,6 +184,7 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere
|
|||
.append(ni.isRoaming() ? " ROAMING" : "")
|
||||
.append("\r\n");
|
||||
}
|
||||
sb.append(String.format("WiFi %B\r\n", Util.isWifiActive(this)));
|
||||
sb.append(String.format("Metered %B\r\n", Util.isMeteredNetwork(this)));
|
||||
pref_technical.setSummary(sb.toString());
|
||||
}
|
||||
|
|
|
@ -169,8 +169,9 @@ public class Util {
|
|||
sb.append(String.format("Id: %s\r\n", Build.ID));
|
||||
sb.append(String.format("Fingerprint: %b\r\n", hasValidFingerprint(tag, context)));
|
||||
sb.append(String.format("VPN dialogs: %b\r\n", isPackageInstalled("com.android.vpndialogs", context)));
|
||||
sb.append(String.format("Interactive: %b\r\n", Util.isInteractive(context)));
|
||||
sb.append(String.format("Metered: %b\r\n", Util.isMeteredNetwork(context)));
|
||||
sb.append(String.format("Interactive: %b\r\n", isInteractive(context)));
|
||||
sb.append(String.format("WiFi: %b\r\n", isWifiActive(context)));
|
||||
sb.append(String.format("Metered: %b\r\n", isMeteredNetwork(context)));
|
||||
|
||||
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
for (Network network : cm.getAllNetworks()) {
|
||||
|
|
Loading…
Reference in New Issue