Add packageName to instantiation exception log.

So we can figure out what package we failed to instantiate an app class
for.

Bug: 174771490
Test: N/A
Change-Id: I554138375ede9421ba053547bbc0250f3b2e812a
This commit is contained in:
Martijn Coenen
2020-12-04 16:41:51 +01:00
parent ed7b77e88d
commit 4b0734e958

View File

@@ -1284,7 +1284,7 @@ public final class LoadedApk {
Trace.traceEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER);
throw new RuntimeException(
"Unable to instantiate application " + appClass
+ ": " + e.toString(), e);
+ " package " + mPackageName + ": " + e.toString(), e);
}
}
mActivityThread.mAllApplications.add(app);