Move Android version from basic info to device info

because the basic info is always sent and we say there won't be data of the device in what we send.
This commit is contained in:
Torsten Grote
2020-12-10 14:40:33 -03:00
parent eb3c2a3566
commit f9a8fcb207

View File

@@ -93,9 +93,7 @@ class BriarReportCollector {
MultiReportInfo basicInfo = new MultiReportInfo() MultiReportInfo basicInfo = new MultiReportInfo()
.add("Package name", packageName) .add("Package name", packageName)
.add("Version name", versionName) .add("Version name", versionName)
.add("Version code", versionCode) .add("Version code", versionCode);
.add("Android version", Build.VERSION.RELEASE)
.add("Android SDK API", String.valueOf(SDK_INT));
// print stacktrace of Throwable if this is not feedback // print stacktrace of Throwable if this is not feedback
if (t != null) { if (t != null) {
final Writer sw = new StringWriter(); final Writer sw = new StringWriter();
@@ -112,6 +110,8 @@ class BriarReportCollector {
private ReportItem getDeviceInfo() { private ReportItem getDeviceInfo() {
MultiReportInfo deviceInfo = new MultiReportInfo() MultiReportInfo deviceInfo = new MultiReportInfo()
.add("Android version", Build.VERSION.RELEASE)
.add("Android SDK API", String.valueOf(SDK_INT))
.add("Product", Build.PRODUCT) .add("Product", Build.PRODUCT)
.add("Model", Build.MODEL) .add("Model", Build.MODEL)
.add("Brand", Build.BRAND); .add("Brand", Build.BRAND);