diff options
| author | Guliz Tuncay <gulizseray@google.com> | 2017-06-02 16:06:10 -0700 | 
|---|---|---|
| committer | Guliz Tuncay <gulizseray@google.com> | 2017-06-09 16:58:04 +0000 | 
| commit | 6908c15396b744d5029adf97d4a4da528fed68c1 (patch) | |
| tree | 6c71dc10cbd91a453b507805ba70c6f296b77b39 /rs/java/android/renderscript/Program.java | |
| parent | 14c991cf97ec2505ff30d8fbb29f241a846feafe (diff) | |
Fix for bug #34905789
A call to showInputMethodPickerFromClient should be allowed only if the
caller is:
  * The system service, as system services should have the privilege to
    show any dialogs
  * The current IME client, as it was already enabled by the user
  * The app on the foreground, as the user cannot distinguish the source
    of the request (i.e., foreground vs background app) and might be
    mislead by a background app to change settings
  * A process with the android.Manifest.permission.WRITE_SECURE_SETTINGS
    permission, as it already has the permission to change settings
Fixes: 34905789
Test: manual
Change-Id: I4f0fc21268200c64d12b31ca54416acfbf62f37b
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions
