OSDN Git Service

Permission Check For DPM Get IME API
authorEric Sandness <sandness@google.com>
Tue, 27 Mar 2018 12:22:52 +0000 (13:22 +0100)
committerEric Sandness <sandness@google.com>
Tue, 27 Mar 2018 17:30:30 +0000 (17:30 +0000)
commit57378939c51541166ea670c1ddea963bd04a567e
treed294c8b9e218e2e2a1742224301830be6f16cac3
parent678c0286be37820a246b0a5b9105790e139d7916
Permission Check For DPM Get IME API

Require the caller of DPM.getPermittedInputMethodsForCurrentUser() to
hold the MANAGE_USERS permission.  The only callers should be settings
apps which already hold this permission.

Bug: 62343414
Test: Manage IME list in the Settings app
Test: com.google.android.gts.devicepolicy.DeviceOwnerTest#testPermitInputMethods
Change-Id: I0d162f8f51d16e403a950ee5d942502c2cf20181
core/java/android/app/admin/DevicePolicyManager.java
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java