Catch throwable exceptions.

If the zygote dies early enough, certain exceptions disappear and never
result in an error message in the log. Fix the code to catch all
Throwable exceptions so that an error message does not result in a
silent restart of the zygote.

Bug: 29400363
Change-Id: Ib044006629ea4441728921f3c587d0cb295ec745
This commit is contained in:
Christopher Ferris
2016-06-17 15:29:58 -07:00
parent 6ed10f4ffa
commit ea8b5de33d

View File

@@ -753,7 +753,7 @@ public class ZygoteInit {
closeServerSocket();
} catch (MethodAndArgsCaller caller) {
caller.run();
} catch (RuntimeException ex) {
} catch (Throwable ex) {
Log.e(TAG, "Zygote died with exception", ex);
closeServerSocket();
throw ex;