cmsdk: Fix CTS Failure due to testDumpProtected

Only dump CMAudio Service State for processes with dump permissions.

OPO-679
Change-Id: I28a501851a76e6d82f5726c13ac1fac74f47a8f1
This commit is contained in:
Pat Erley 2016-05-05 12:14:58 -07:00
parent 10f165d5d0
commit 9ff5ea9cea

View File

@ -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 {