Prevent Binder stub swallowing Exceptions

This commit is contained in:
Mygod
2021-07-24 23:29:50 -04:00
parent 37df32880d
commit 0c36bcbade

View File

@@ -66,7 +66,11 @@ object TetheringManager {
} }
private object InPlaceExecutor : Executor { private object InPlaceExecutor : Executor {
override fun execute(command: Runnable) = command.run() override fun execute(command: Runnable) = try {
command.run()
} catch (e: Exception) {
Timber.w(e) // prevent Binder stub swallowing the exception
}
} }
/** /**