Improved ServicePermissionsTest logging.

For example, this test pass in some devices because they throw a
DeadObjectException, even though the service is not checking the permission,
which makes it harder to debug issues on other devices.

Bug: 143966438
Test: atest CtsSecurityTestCases:android.security.cts.ServicePermissionsTest#testDumpProtected

Change-Id: I4c6313cbb88be3a17f8929e97657a5beee0aebe7
1 file changed