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

Commit 4493017a authored by Yohei Yukawa's avatar Yohei Yukawa Committed by Android (Google) Code Review
Browse files

Merge "Report EditorInfo#packageName based on the actual uid." into mnc-dev

parents c0f9ca7b 02df328f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1169,7 +1169,10 @@ public final class InputMethodManager {
        // do its stuff.
        // Life is good: let's hook everything up!
        EditorInfo tba = new EditorInfo();
        tba.packageName = view.getContext().getPackageName();
        // Note: Use Context#getOpPackageName() rather than Context#getPackageName() so that the
        // system can verify the consistency between the uid of this process and package name passed
        // from here. See comment of Context#getOpPackageName() for details.
        tba.packageName = view.getContext().getOpPackageName();
        tba.fieldId = view.getId();
        InputConnection ic = view.onCreateInputConnection(tba);
        if (DEBUG) Log.v(TAG, "Starting input: tba=" + tba + " ic=" + ic);