Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Log android version along with device name

ashilknf590a431595e
diff --git a/mobile/lib/core/error-reporting/super_logging.dart b/mobile/lib/core/error-reporting/super_logging.dart
index dbe2258098..643f0d149e 100644
--- a/mobile/lib/core/error-reporting/super_logging.dart
+++ b/mobile/lib/core/error-reporting/super_logging.dart
@@ -201,8 +201,8 @@ class SuperLogging {
}
unawaited(
- getDeviceName().then((name) {
- $.info("Device name: $name");
+ getDeviceInfo().then((info) {
+ $.info("Device Info: $info");
}),
);
diff --git a/mobile/lib/utils/device_info.dart b/mobile/lib/utils/device_info.dart
index ea9509b54e..f84e415587 100644
--- a/mobile/lib/utils/device_info.dart
+++ b/mobile/lib/utils/device_info.dart
@@ -14,7 +14,7 @@ Future<bool> isAndroidSDKVersionLowerThan(int inputSDK) async {
}
}
-Future<String?> getDeviceName() async {
+Future<String?> getDeviceInfo() async {
try {
if (Platform.isIOS) {
final IosDeviceInfo iosInfo = await deviceInfoPlugin.iosInfo;
@@ -22,7 +22,7 @@ Future<String?> getDeviceName() async {
} else if (Platform.isAndroid) {
final AndroidDeviceInfo androidInfo = await deviceInfoPlugin.androidInfo;
- return "${androidInfo.brand} ${androidInfo.model}";
+ return "${androidInfo.brand} ${androidInfo.model} Android ${androidInfo.version.release}";
} else {
return "Not iOS or Android";
}