add versionCode to debug info (#2427)

This commit is contained in:
bjoern 2022-11-15 17:30:18 +01:00 committed by GitHub
parent 97868bcdbc
commit 0169db7146
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -239,6 +239,9 @@ public class LogViewFragment extends Fragment {
.append(BuildConfig.FLAVOR) .append(BuildConfig.FLAVOR)
.append(BuildConfig.DEBUG? "-debug" : "") .append(BuildConfig.DEBUG? "-debug" : "")
.append("\n"); .append("\n");
builder.append("versionCode=")
.append(pm.getPackageInfo(context.getPackageName(), 0).versionCode)
.append("\n");
builder.append("installer=") builder.append("installer=")
.append(pm.getInstallerPackageName(context.getPackageName())) .append(pm.getInstallerPackageName(context.getPackageName()))
.append("\n"); .append("\n");