Skip to content

Commit 5ce09de

Browse files
Include whether a user has a linked device in the debug log.
1 parent da9064b commit 5ce09de

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

Diff for: app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionSystemInfo.java

+21-18
Original file line numberDiff line numberDiff line change
@@ -39,38 +39,41 @@ public class LogSectionSystemInfo implements LogSection {
3939
final PackageManager pm = context.getPackageManager();
4040
final StringBuilder builder = new StringBuilder();
4141

42-
builder.append("Time : ").append(System.currentTimeMillis()).append('\n');
43-
builder.append("Manufacturer : ").append(Build.MANUFACTURER).append("\n");
44-
builder.append("Model : ").append(Build.MODEL).append("\n");
45-
builder.append("Product : ").append(Build.PRODUCT).append("\n");
46-
builder.append("Screen : ").append(getScreenResolution(context)).append(", ")
42+
builder.append("Time : ").append(System.currentTimeMillis()).append('\n');
43+
builder.append("Manufacturer : ").append(Build.MANUFACTURER).append("\n");
44+
builder.append("Model : ").append(Build.MODEL).append("\n");
45+
builder.append("Product : ").append(Build.PRODUCT).append("\n");
46+
builder.append("Screen : ").append(getScreenResolution(context)).append(", ")
4747
.append(getScreenDensityClass(context)).append(", ")
4848
.append(getScreenRefreshRate(context)).append("\n");
49-
builder.append("Font Scale : ").append(context.getResources().getConfiguration().fontScale).append("\n");
50-
builder.append("Android : ").append(Build.VERSION.RELEASE).append(" (")
49+
builder.append("Font Scale : ").append(context.getResources().getConfiguration().fontScale).append("\n");
50+
builder.append("Android : ").append(Build.VERSION.RELEASE).append(" (")
5151
.append(Build.VERSION.INCREMENTAL).append(", ")
5252
.append(Build.DISPLAY).append(")\n");
53-
builder.append("ABIs : ").append(TextUtils.join(", ", getSupportedAbis())).append("\n");
54-
builder.append("Memory : ").append(getMemoryUsage()).append("\n");
55-
builder.append("Memclass : ").append(getMemoryClass(context)).append("\n");
56-
builder.append("OS Host : ").append(Build.HOST).append("\n");
57-
builder.append("Censored : ").append(CensorshipUtil.isCensored(context)).append("\n");
58-
builder.append("Play Services: ").append(getPlayServicesString(context)).append("\n");
59-
builder.append("FCM : ").append(!TextSecurePreferences.isFcmDisabled(context)).append("\n");
60-
builder.append("Locale : ").append(Locale.getDefault().toString()).append("\n");
61-
builder.append("First Version: ").append(TextSecurePreferences.getFirstInstallVersion(context)).append("\n");
62-
builder.append("App : ");
53+
builder.append("ABIs : ").append(TextUtils.join(", ", getSupportedAbis())).append("\n");
54+
builder.append("Memory : ").append(getMemoryUsage()).append("\n");
55+
builder.append("Memclass : ").append(getMemoryClass(context)).append("\n");
56+
builder.append("OS Host : ").append(Build.HOST).append("\n");
57+
builder.append("Censored : ").append(CensorshipUtil.isCensored(context)).append("\n");
58+
builder.append("Play Services : ").append(getPlayServicesString(context)).append("\n");
59+
builder.append("FCM : ").append(!TextSecurePreferences.isFcmDisabled(context)).append("\n");
60+
builder.append("Locale : ").append(Locale.getDefault().toString()).append("\n");
61+
builder.append("Linked Devices: ").append(TextSecurePreferences.isMultiDevice(context)).append("\n");
62+
builder.append("First Version : ").append(TextSecurePreferences.getFirstInstallVersion(context)).append("\n");
63+
builder.append("App : ");
6364
try {
6465
builder.append(pm.getApplicationLabel(pm.getApplicationInfo(context.getPackageName(), 0)))
6566
.append(" ")
6667
.append(pm.getPackageInfo(context.getPackageName(), 0).versionName)
6768
.append(" (")
69+
.append(BuildConfig.CANONICAL_VERSION_CODE)
70+
.append(", ")
6871
.append(Util.getManifestApkVersion(context))
6972
.append(")\n");
7073
} catch (PackageManager.NameNotFoundException nnfe) {
7174
builder.append("Unknown\n");
7275
}
73-
builder.append("Package : ").append(BuildConfig.APPLICATION_ID).append(" (").append(getSigningString(context)).append(")");
76+
builder.append("Package : ").append(BuildConfig.APPLICATION_ID).append(" (").append(getSigningString(context)).append(")");
7477

7578
return builder;
7679
}

0 commit comments

Comments
 (0)