Search in sources :

Example 1 with VClientImpl

use of com.lody.virtual.client.VClientImpl in project VirtualApp by asLody.

the class StubContentProvider method initProcess.

private Bundle initProcess(Bundle extras) {
    ConditionVariable lock = VirtualCore.get().getInitLock();
    if (lock != null) {
        lock.block();
    }
    IBinder token = BundleCompat.getBinder(extras, "_VA_|_binder_");
    int vuid = extras.getInt("_VA_|_vuid_");
    VClientImpl client = VClientImpl.get();
    client.initProcess(token, vuid);
    Bundle res = new Bundle();
    BundleCompat.putBinder(res, "_VA_|_client_", client.asBinder());
    res.putInt("_VA_|_pid_", Process.myPid());
    return res;
}
Also used : ConditionVariable(android.os.ConditionVariable) IBinder(android.os.IBinder) Bundle(android.os.Bundle) VClientImpl(com.lody.virtual.client.VClientImpl)

Aggregations

Bundle (android.os.Bundle)1 ConditionVariable (android.os.ConditionVariable)1 IBinder (android.os.IBinder)1 VClientImpl (com.lody.virtual.client.VClientImpl)1