Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bb5e508 authored by Devin Moore's avatar Devin Moore
Browse files

AllowBlocking in ServiceManager binder

Java ServiceManager should allow blocking calls in system_server.

Test: boot cuttlefish device and see WTF logs go away at boot
Bug: 361700949
Change-Id: Icec1a45221a28ea2ce29756c81b22b70f2a5d0eb
parent 1c9eb66a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -50,7 +50,8 @@ public final class ServiceManagerNative {
class ServiceManagerProxy implements IServiceManager {
    public ServiceManagerProxy(IBinder remote) {
        mRemote = remote;
        mServiceManager = IServiceManager.Stub.asInterface(this.getNativeServiceManager());
        mServiceManager = IServiceManager.Stub.asInterface(
            Binder.allowBlocking(this.getNativeServiceManager()));
    }

    public IBinder asBinder() {