Check for dump permission on perfprofd

Even though dumping is not implemented yet on this service, it should
check for the right permission and print a failure message as expected
by CTS.

The fix is based on a similar change in frameworks/av, commit
8bf5518c49d256ac27937dba007879c7f4693138.

Issue: FP2P-326
Test: run cts -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest#testDumpProtected
Change-Id: I81e63724ecfa7c4346f1425c616f241e5024bf46
1 file changed