diff options
author | Diogo Ferreira <defer@cyngn.com> | 2016-06-07 16:17:15 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-06-07 10:55:45 -0700 |
commit | 19de84cd1bb7865cb6bc9ed5baf5d3e882583b63 (patch) | |
tree | 3211557267b64581faa7b666775cce5d21dcfdce | |
parent | 705890212d6b06cb2d056e1b97dc39ae5e08252c (diff) | |
download | vendor_cmsdk-19de84cd1bb7865cb6bc9ed5baf5d3e882583b63.zip vendor_cmsdk-19de84cd1bb7865cb6bc9ed5baf5d3e882583b63.tar.gz vendor_cmsdk-19de84cd1bb7865cb6bc9ed5baf5d3e882583b63.tar.bz2 |
cmsdk: LiveDisplay: Enforce dump permission
Fixes android.security.cts.ServicePermissionsTest#testDumpProtected.
Change-Id: I5641b42c56d9783b1edb8fb397d51040cadb1467
-rw-r--r-- | cm/lib/main/java/org/cyanogenmod/platform/internal/display/LiveDisplayService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/display/LiveDisplayService.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/display/LiveDisplayService.java index f724f1d..db2b1a6 100644 --- a/cm/lib/main/java/org/cyanogenmod/platform/internal/display/LiveDisplayService.java +++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/display/LiveDisplayService.java @@ -468,6 +468,8 @@ public class LiveDisplayService extends CMSystemService { @Override public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { + mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG); + pw.println(); pw.println("LiveDisplay Service State:"); pw.println(" mState=" + mState.toString()); |