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

Skip to content
Commit 1d0387f0 authored by Yohei Yukawa's avatar Yohei Yukawa
Browse files

Make IMMS#canShowInputMethodPickerLocked() self-contained

With this CL,

  InputMethodManagerService#canShowInputMethodPickerLocked()

becomes the only and unified verification mechanism about who can call

  IInputMethodManager#showInputMethodPickerFromClient().

This CL also fixes an edge case when a background IME process is
allowed to call that API when all the following conditions are met.

  A. The calling process has the same package name as the current IME
     for the foreground user, and
  B. The calling process has INTERACT_ACROSS_USERS_FULL permission.

It is quite unlikely that existing IMEs have relied on the above edge
case, because INTERACT_ACROSS_USERS_FULL is a system API that should
not be granted to IMEs in general.

Either way, with this CL, future readers should be able to understand
how the caller is verified more easily.

Bug: 34886274
Test: presubmit
Change-Id: I423b109bd55c13397e9236890ce72d043d1b7a89
parent 7e29c3b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment