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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user