Put info about data saver in the logs.

This commit is contained in:
Greyson Parrelli
2022-10-31 09:16:31 -04:00
committed by Cody Henthorne
parent f119496da4
commit 1a657a7a19
2 changed files with 50 additions and 1 deletions

View File

@@ -70,10 +70,11 @@ public class LogSectionSystemInfo implements LogSection {
builder.append("Device ID : ").append(SignalStore.account().getDeviceId()).append("\n");
builder.append("Censored : ").append(ApplicationDependencies.getSignalServiceNetworkAccess().isCensored()).append("\n");
builder.append("Network Status: ").append(NetworkUtil.getNetworkStatus(context)).append("\n");
builder.append("Data Saver : ").append(DeviceProperties.getDataSaverState(context)).append("\n");
builder.append("Play Services : ").append(getPlayServicesString(context)).append("\n");
builder.append("FCM : ").append(SignalStore.account().isFcmEnabled()).append("\n");
builder.append("BkgRestricted : ").append(Build.VERSION.SDK_INT >= 28 ? DeviceProperties.isBackgroundRestricted(context) : "N/A").append("\n");
builder.append("Locale : ").append(Locale.getDefault().toString()).append("\n");
builder.append("Locale : ").append(Locale.getDefault()).append("\n");
builder.append("Linked Devices: ").append(TextSecurePreferences.isMultiDevice(context)).append("\n");
builder.append("First Version : ").append(TextSecurePreferences.getFirstInstallVersion(context)).append("\n");
builder.append("Days Installed: ").append(VersionTracker.getDaysSinceFirstInstalled(context)).append("\n");