Include whether a user has a linked device in the debug log.
This commit is contained in:
parent
da9064b714
commit
5ce09defca
1 changed files with 21 additions and 18 deletions
|
@ -55,16 +55,19 @@ public class LogSectionSystemInfo implements LogSection {
|
||||||
builder.append("Memclass : ").append(getMemoryClass(context)).append("\n");
|
builder.append("Memclass : ").append(getMemoryClass(context)).append("\n");
|
||||||
builder.append("OS Host : ").append(Build.HOST).append("\n");
|
builder.append("OS Host : ").append(Build.HOST).append("\n");
|
||||||
builder.append("Censored : ").append(CensorshipUtil.isCensored(context)).append("\n");
|
builder.append("Censored : ").append(CensorshipUtil.isCensored(context)).append("\n");
|
||||||
builder.append("Play Services: ").append(getPlayServicesString(context)).append("\n");
|
builder.append("Play Services : ").append(getPlayServicesString(context)).append("\n");
|
||||||
builder.append("FCM : ").append(!TextSecurePreferences.isFcmDisabled(context)).append("\n");
|
builder.append("FCM : ").append(!TextSecurePreferences.isFcmDisabled(context)).append("\n");
|
||||||
builder.append("Locale : ").append(Locale.getDefault().toString()).append("\n");
|
builder.append("Locale : ").append(Locale.getDefault().toString()).append("\n");
|
||||||
builder.append("First Version: ").append(TextSecurePreferences.getFirstInstallVersion(context)).append("\n");
|
builder.append("Linked Devices: ").append(TextSecurePreferences.isMultiDevice(context)).append("\n");
|
||||||
|
builder.append("First Version : ").append(TextSecurePreferences.getFirstInstallVersion(context)).append("\n");
|
||||||
builder.append("App : ");
|
builder.append("App : ");
|
||||||
try {
|
try {
|
||||||
builder.append(pm.getApplicationLabel(pm.getApplicationInfo(context.getPackageName(), 0)))
|
builder.append(pm.getApplicationLabel(pm.getApplicationInfo(context.getPackageName(), 0)))
|
||||||
.append(" ")
|
.append(" ")
|
||||||
.append(pm.getPackageInfo(context.getPackageName(), 0).versionName)
|
.append(pm.getPackageInfo(context.getPackageName(), 0).versionName)
|
||||||
.append(" (")
|
.append(" (")
|
||||||
|
.append(BuildConfig.CANONICAL_VERSION_CODE)
|
||||||
|
.append(", ")
|
||||||
.append(Util.getManifestApkVersion(context))
|
.append(Util.getManifestApkVersion(context))
|
||||||
.append(")\n");
|
.append(")\n");
|
||||||
} catch (PackageManager.NameNotFoundException nnfe) {
|
} catch (PackageManager.NameNotFoundException nnfe) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue