diff options
author | Pat Erley <perley@cyngn.com> | 2016-05-05 12:14:58 -0700 |
---|---|---|
committer | Pat Erley <perley@cyngn.com> | 2016-05-05 12:14:58 -0700 |
commit | 9ff5ea9cea1938ca39eae6664f7a9ec3d12f7afc (patch) | |
tree | 3f3b833f9a07b9243712df27529aa4d941d7bf45 | |
parent | 10f165d5d0618cce814324a282f00a8e4a5767dd (diff) | |
download | vendor_cmsdk-9ff5ea9cea1938ca39eae6664f7a9ec3d12f7afc.zip vendor_cmsdk-9ff5ea9cea1938ca39eae6664f7a9ec3d12f7afc.tar.gz vendor_cmsdk-9ff5ea9cea1938ca39eae6664f7a9ec3d12f7afc.tar.bz2 |
cmsdk: Fix CTS Failure due to testDumpProtected
Only dump CMAudio Service State for processes with dump permissions.
OPO-679
Change-Id: I28a501851a76e6d82f5726c13ac1fac74f47a8f1
-rw-r--r-- | cm/lib/main/java/org/cyanogenmod/platform/internal/CMAudioService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cm/lib/main/java/org/cyanogenmod/platform/internal/CMAudioService.java b/cm/lib/main/java/org/cyanogenmod/platform/internal/CMAudioService.java index 99f3f6f..8b9bc31 100644 --- a/cm/lib/main/java/org/cyanogenmod/platform/internal/CMAudioService.java +++ b/cm/lib/main/java/org/cyanogenmod/platform/internal/CMAudioService.java @@ -113,6 +113,8 @@ public class CMAudioService extends SystemService { @Override public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { + mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG); + pw.println(); pw.println("CMAudio Service State:"); try { |