add installer-package-name to debug-log

This commit is contained in:
B. Petersen
2019-06-08 02:17:33 +02:00
parent e7a5030d92
commit 951121cdb7
@@ -199,6 +199,9 @@ public class LogViewFragment extends Fragment {
.append(BuildConfig.FLAVOR)
.append(BuildConfig.DEBUG? "-debug" : "")
.append("\n");
builder.append("installer=")
.append(pm.getInstallerPackageName(context.getPackageName()))
.append("\n");
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
builder.append("ignoreBatteryOptimizations=").append(
powerManager.isIgnoringBatteryOptimizations(context.getPackageName())).append("\n");