Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25b32c65 authored by Adam Hampson's avatar Adam Hampson
Browse files

hdmi: cec: add permission name to dump permission denial message



The android.security.cts.ServicePermissionsTest--testDumpProtected test was
failing on this service because it is looking for the permission name in the
denial message.

Change-Id: I4b4d38cd27b782470d1f21e36104164d2c8962a3
Signed-off-by: default avatarAdam Hampson <ahampson@google.com>
parent d1e32cd3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -366,7 +366,8 @@ public final class HdmiCecService extends SystemService {
            if (getContext().checkCallingOrSelfPermission(android.Manifest.permission.DUMP)
                    != PackageManager.PERMISSION_GRANTED) {
                pw.println("Permission denial: can't dump HdmiCecService from pid="
                        + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid());
                        + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid()
                        + " without permission " + android.Manifest.permission.DUMP);
                return;
            }
            final long ident = Binder.clearCallingIdentity();