Search in sources :

Example 1 with ServiceConnectionDelegate

use of com.lody.virtual.client.hook.secondary.ServiceConnectionDelegate in project VirtualApp by asLody.

the class UnbindService method call.

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
    IServiceConnection conn = (IServiceConnection) args[0];
    ServiceConnectionDelegate delegate = ServiceConnectionDelegate.removeDelegate(conn);
    if (delegate == null) {
        return method.invoke(who, args);
    }
    return VActivityManager.get().unbindService(delegate);
}
Also used : IServiceConnection(android.app.IServiceConnection) ServiceConnectionDelegate(com.lody.virtual.client.hook.secondary.ServiceConnectionDelegate)

Aggregations

IServiceConnection (android.app.IServiceConnection)1 ServiceConnectionDelegate (com.lody.virtual.client.hook.secondary.ServiceConnectionDelegate)1