Run connect on main thread

This commit is contained in:
topjohnwu 2022-03-09 23:07:48 -08:00
parent 59eda41b13
commit 7a36507db4

View File

@ -97,6 +97,10 @@ public class RootServiceServer extends IRootServiceManager.Stub {
@Override
public void connect(IBinder binder, boolean debug) {
UiThreadHandler.run(() -> connectInternal(binder, debug));
}
private void connectInternal(IBinder binder, boolean debug) {
ClientProcess c = clients.get(getCallingUid());
if (c != null)
return;