OSDN Git Service

[RESTRICT AUTOMERGE] Added missing permission check to isPackageDeviceAdminOnAnyUser.
authorBryan Ferris <bferris@google.com>
Thu, 4 Apr 2019 22:18:52 +0000 (15:18 -0700)
committerBryan Ferris <bferris@google.com>
Thu, 4 Apr 2019 22:23:45 +0000 (15:23 -0700)
commit7b5a576965696747041c93306a41ed656404ed20
treeeb1a08f813a1dea68cce5bb19d8435ae3beca6b7
parentb5e7bbe5b8e1d120d3f13f6d15b7be16d4f2e132
[RESTRICT AUTOMERGE] Added missing permission check to isPackageDeviceAdminOnAnyUser.

Added a check for the MANAGE_USERS permission to
PackageManagerService#isPackageDeviceAdminOnAnyUser.

Test: Modify the settings app to log the call attempt and follow the
steps below

In order to work around the limitations of N builds we needed to modify
the settings app to log the call attempt. This is described in detail at
b/128599183#comment15

Bug: 128599183
Change-Id: Ie96c8e174983f61574f12d5d4b210d06377054e5
services/core/java/com/android/server/pm/PackageManagerService.java