@@ -39,38 +39,41 @@ public class LogSectionSystemInfo implements LogSection {
39
39
final PackageManager pm = context .getPackageManager ();
40
40
final StringBuilder builder = new StringBuilder ();
41
41
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 (", " )
47
47
.append (getScreenDensityClass (context )).append (", " )
48
48
.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 (" (" )
51
51
.append (Build .VERSION .INCREMENTAL ).append (", " )
52
52
.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 : " );
63
64
try {
64
65
builder .append (pm .getApplicationLabel (pm .getApplicationInfo (context .getPackageName (), 0 )))
65
66
.append (" " )
66
67
.append (pm .getPackageInfo (context .getPackageName (), 0 ).versionName )
67
68
.append (" (" )
69
+ .append (BuildConfig .CANONICAL_VERSION_CODE )
70
+ .append (", " )
68
71
.append (Util .getManifestApkVersion (context ))
69
72
.append (")\n " );
70
73
} catch (PackageManager .NameNotFoundException nnfe ) {
71
74
builder .append ("Unknown\n " );
72
75
}
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 (")" );
74
77
75
78
return builder ;
76
79
}
0 commit comments