1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 10:47:28 +00:00

Debug: GMS version

This commit is contained in:
M66B 2024-07-30 06:53:29 +02:00
parent 5757e5c9a4
commit 58cf914d87

View file

@ -287,9 +287,17 @@ public class DebugHelper {
Log.e(ex);
}
String gms = null;
try {
PackageInfo pi = pm.getPackageInfo("com.google.android.gms", 0);
if (pi != null)
gms = pi.versionName + " #" + pi.versionCode;
} catch (Throwable ignored) {
}
String installer = Helper.getInstallerName(context);
sb.append(String.format("Release: %s\r\n", Log.getReleaseType(context)));
sb.append(String.format("Play Store: %s\r\n", Helper.hasPlayStore(context)));
sb.append(String.format("Play Store: %s Services: %s\r\n", Helper.hasPlayStore(context), gms));
sb.append(String.format("Installer: %s\r\n", installer == null ? "-" : installer));
sb.append(String.format("Installed: %s\r\n", new Date(Helper.getInstallTime(context))));
sb.append(String.format("Updated: %s\r\n", new Date(Helper.getUpdateTime(context))));