[core] Prevent binder from dying

This commit is contained in:
LoveSy 2021-02-19 23:26:17 +08:00 committed by tehcneko
parent db18cfcb60
commit 2e58c6a3e7
1 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,10 @@ public class ServiceManager {
Log.e(TAG, Log.getStackTraceString(e));
}
Thread.setDefaultUncaughtExceptionHandler((t, e)->{
Log.e(TAG, Log.getStackTraceString(e));
});
//noinspection InfiniteLoopStatement
while (true) {
try {