Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac5222b3 authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Fixed autofill forged package check to only compare the package name."...

Merge "Fixed autofill forged package check to only compare the package name." into pi-dev am: 2fbdb17c
am: 36f6a514

Change-Id: Ib0ec9526d0a0fc2ca221c8badfc4f57404e0142f
parents 44866357 36f6a514
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -271,7 +271,8 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState

                // Sanitize structure before it's sent to service.
                final ComponentName componentNameFromApp = structure.getActivityComponent();
                if (!mComponentName.equals(componentNameFromApp)) {
                if (componentNameFromApp == null || !mComponentName.getPackageName()
                        .equals(componentNameFromApp.getPackageName())) {
                    Slog.w(TAG, "Activity " + mComponentName + " forged different component on "
                            + "AssistStructure: " + componentNameFromApp);
                    structure.setActivityComponent(mComponentName);