Log "launched from" packge for all activities
Change-Id: I2d06dcd7d4ff7686e72ee24bd349e0f5e1b8273e Fixes: 63992855 Test: Manual. Start an app and see that the from package is logged.
This commit is contained in:
@@ -361,7 +361,7 @@ class ActivityMetricsLogger {
|
||||
builder.setType(type);
|
||||
builder.addTaggedData(FIELD_CLASS_NAME, info.launchedActivity.info.name);
|
||||
final boolean isInstantApp = info.launchedActivity.info.applicationInfo.isInstantApp();
|
||||
if (isInstantApp && info.launchedActivity.launchedFromPackage != null) {
|
||||
if (info.launchedActivity.launchedFromPackage != null) {
|
||||
builder.addTaggedData(APP_TRANSITION_CALLING_PACKAGE_NAME,
|
||||
info.launchedActivity.launchedFromPackage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user