OSDN Git Service

clear caller identify before sending system update notification
authorRubin Xu <rubinxu@google.com>
Thu, 14 May 2015 12:48:35 +0000 (13:48 +0100)
committerRubin Xu <rubinxu@google.com>
Thu, 14 May 2015 12:48:35 +0000 (13:48 +0100)
commit2c84cc2ea2ffa1fcd3dbd9a1b5e3880571fba1b8
tree355b6cf31b2a8cfa7fc9b14b0f07da968465b205
parentc454f786e2301b26afee3809a293a7fadd65434a
clear caller identify before sending system update notification

Because DeviceAdminReceiver is protected by BIND_DEVICE_ADMIN permission,
in order to send broadcast to it, we need to clear the caller's identity
and call sendBroadcastAsUser() as system.

Bug: 20213644
Change-Id: Icc7b239b9005e286012ade6580ec92a0a57198e0
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java