mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 03:05:31 +00:00
Debug: GMS version
This commit is contained in:
parent
5757e5c9a4
commit
58cf914d87
1 changed files with 9 additions and 1 deletions
|
@ -287,9 +287,17 @@ public class DebugHelper {
|
||||||
Log.e(ex);
|
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);
|
String installer = Helper.getInstallerName(context);
|
||||||
sb.append(String.format("Release: %s\r\n", Log.getReleaseType(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("Installer: %s\r\n", installer == null ? "-" : installer));
|
||||||
sb.append(String.format("Installed: %s\r\n", new Date(Helper.getInstallTime(context))));
|
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))));
|
sb.append(String.format("Updated: %s\r\n", new Date(Helper.getUpdateTime(context))));
|
||||||
|
|
Loading…
Reference in a new issue