Added updated time to debug info

This commit is contained in:
M66B
2022-07-20 22:10:07 +02:00
parent 7bedb14dd0
commit 19a179edb8
2 changed files with 13 additions and 0 deletions

View File

@@ -1155,6 +1155,18 @@ public class Helper {
return 0;
}
static long getUpdateTime(Context context) {
try {
PackageManager pm = context.getPackageManager();
PackageInfo pi = pm.getPackageInfo(BuildConfig.APPLICATION_ID, 0);
if (pi != null)
return pi.lastUpdateTime;
} catch (Throwable ex) {
Log.e(ex);
}
return 0;
}
static int getTargetSdk(Context context) {
if (targetSdk == null)
try {