Remove DeadObjectException from dumpservice failure condition.

Gatekeeper service is denied the ability to write to fd provided by cts
to collect dump data by SELinux, resulting in a DeadObjectException,
which terminates the test.  Allow the test to pass in this case.

type=1400 audit(0.0:29): avc: denied { write } for
path="/data/data/com.android.cts.security/cache/CTS_DUMP" dev="dm-0" ino=1689223 scontext=u:r:gatekeeperd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file permissive=0

Bug: 23476772
Change-Id: I7fddb8421eed15b2505be3c22a86c60e1bfc2e8d
diff --git a/tests/tests/security/src/android/security/cts/ServicePermissionsTest.java b/tests/tests/security/src/android/security/cts/ServicePermissionsTest.java
index 00cbfd8..fdc3058 100644
--- a/tests/tests/security/src/android/security/cts/ServicePermissionsTest.java
+++ b/tests/tests/security/src/android/security/cts/ServicePermissionsTest.java
@@ -17,6 +17,7 @@
 package android.security.cts;
 
 import android.os.IBinder;
+import android.os.DeadObjectException;
 import android.os.TransactionTooLargeException;
 import android.test.AndroidTestCase;
 import android.util.Log;
@@ -108,7 +109,7 @@
                     // probably not checking for DUMP.
                     throw e;
                 }
-            } catch (TransactionTooLargeException e) {
+            } catch (TransactionTooLargeException | DeadObjectException e) {
                 // SELinux likely prevented the dump - assume safe
                 continue;
             } finally {