From 6af90b38aec29a9f749b20276453e0b155084daa Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sat, 5 Jan 2019 22:31:49 +0000 Subject: [PATCH] Acra report: include installFrom. --- app/src/main/java/com/etesync/syncadapter/App.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/etesync/syncadapter/App.kt b/app/src/main/java/com/etesync/syncadapter/App.kt index 6b2967cd..7492c8f7 100644 --- a/app/src/main/java/com/etesync/syncadapter/App.kt +++ b/app/src/main/java/com/etesync/syncadapter/App.kt @@ -122,6 +122,9 @@ class App : Application() { // The following line triggers the initialization of ACRA ACRA.init(this) + val pm = base.packageManager + var installedFrom = pm.getInstallerPackageName(BuildConfig.APPLICATION_ID) + ACRA.getErrorReporter().putCustomData("installedFrom", installedFrom); } private fun loadLanguage() {