OSDN Git Service

Allow system UID to call isSecurityLoggingEnabled()
authorBartosz Fabianowski <bartfab@google.com>
Fri, 24 Mar 2017 13:22:24 +0000 (14:22 +0100)
committerBartosz Fabianowski <bartfab@google.com>
Fri, 24 Mar 2017 14:17:28 +0000 (15:17 +0100)
commit0ec0000c225370375c9813c95651d55ee753e600
treea8081482030838d459370eaa53426f1918e67582
parent837dde71ce999b67c1e7cf1c70351d48639504f4
Allow system UID to call isSecurityLoggingEnabled()

This CL allows code running under the system UID to call
isSecurityLoggingEnabled(), so that Settings can find out whether
logging is on or off.

Bug: 36584321
Test: m RunSettingsRoboTests

Change-Id: Icf8b7d6cef0f4e23f57bcf0498ffdcf124d16d38
core/java/android/app/admin/DevicePolicyManager.java
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java