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

Commit ba9c981a authored by Andy Mast's avatar Andy Mast
Browse files

Fingerprint: Secure the dump

CTS requires services to be protected.

Change-Id: Id80e8a722c40d6c1ca05da5412dd7589e28d5463
parent 213331fa
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -507,6 +507,12 @@ public class FingerprintService extends SystemService {
         */
        @Override
        protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
            if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP)
                    != PackageManager.PERMISSION_GRANTED) {
                pw.println("Permission Denial: can't dump telephony.registry from from pid="
                        + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid());
                return;
            }
            if (mHal == 0) {
                pw.println("Fingerprint sensor not available");
            } else if (args.length != 0 && DUMP_CMD_PRINT_ENROLLMENTS.equals(args[0])) {