am 4493017a: Merge "Report EditorInfo#packageName based on the actual uid." into mnc-dev
* commit '4493017abb5ff30648b7d736b411c4d22d002de1': Report EditorInfo#packageName based on the actual uid.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user