@Override public IBinder createProxyService(ComponentName component, IBinder binder) { return ProxyServiceFactory.getProxyService(getCurrentApplication(), component, binder); }
public void connected(ComponentName name, IBinder service, boolean dead) throws RemoteException { IBinderDelegateService delegateService = IBinderDelegateService.Stub.asInterface(service); if (delegateService != null) { name = delegateService.getComponent(); service = delegateService.getService(); IBinder proxy = ProxyServiceFactory.getProxyService(VClientImpl.get().getCurrentApplication(), name, service); if (proxy != null) { service = proxy; } } if(Build.VERSION.SDK_INT>=26) { IServiceConnectionO.connected.call(mConn, name, service, dead); }else { mConn.connected(name, service); } } }
} else { try { Reflect.on(VClientImpl.get().getCurrentApplication().getPackageManager()).call("setLastChosenActivity", intent, intent.resolveTypeIfNeeded(getContentResolver()),
@Override protected void onCreate(Bundle savedInstanceState) { // The savedInstanceState's classLoader is not exist. super.onCreate(null); finish(); // It seems that we have conflict with the other Android-Plugin-Framework. Intent stubIntent = getIntent(); // Try to acquire the actually component information. StubActivityRecord r = new StubActivityRecord(stubIntent); if (r.intent != null) { if (TextUtils.equals(r.info.processName, VirtualRuntime.getProcessName()) && r.userId == VUserHandle.myUserId()) { // Retry to inject the HCallback to instead of the exist one. InvocationStubManager.getInstance().checkEnv(HCallbackStub.class); Intent intent = r.intent; intent.setExtrasClassLoader(VClientImpl.get().getCurrentApplication().getClassLoader()); startActivity(intent); } else { // Start the target Activity in other process. VActivityManager.get().startActivity(r.intent, r.userId); } } }
Application app = VClientImpl.get().getCurrentApplication(); if (app != null) { try {
@Override public IBinder createProxyService(ComponentName component, IBinder binder) { return ProxyServiceFactory.getProxyService(getCurrentApplication(), component, binder); }
@Override public IBinder createProxyService(ComponentName component, IBinder binder) { return ProxyServiceFactory.getProxyService(getCurrentApplication(), component, binder); }
public void connected(ComponentName name, IBinder service, boolean dead) throws RemoteException { IBinderDelegateService delegateService = IBinderDelegateService.Stub.asInterface(service); if (delegateService != null) { name = delegateService.getComponent(); service = delegateService.getService(); IBinder proxy = ProxyServiceFactory.getProxyService(VClientImpl.get().getCurrentApplication(), name, service); if (proxy != null) { service = proxy; } } if(Build.VERSION.SDK_INT>=26) { IServiceConnectionO.connected.call(mConn, name, service, dead); }else { mConn.connected(name, service); } } }
public void connected(ComponentName name, IBinder service, boolean dead) throws RemoteException { IBinderDelegateService delegateService = IBinderDelegateService.Stub.asInterface(service); if (delegateService != null) { name = delegateService.getComponent(); service = delegateService.getService(); IBinder proxy = ProxyServiceFactory.getProxyService(VClientImpl.get().getCurrentApplication(), name, service); if (proxy != null) { service = proxy; } } if(Build.VERSION.SDK_INT>=26) { IServiceConnectionO.connected.call(mConn, name, service, dead); }else { mConn.connected(name, service); } } }
@Override protected void onCreate(Bundle savedInstanceState) { // The savedInstanceState's classLoader is not exist. super.onCreate(null); finish(); // It seems that we have conflict with the other Android-Plugin-Framework. Intent stubIntent = getIntent(); // Try to acquire the actually component information. StubActivityRecord r = new StubActivityRecord(stubIntent); if (r.intent != null) { if (TextUtils.equals(r.info.processName, VirtualRuntime.getProcessName()) && r.userId == VUserHandle.myUserId()) { // Retry to inject the HCallback to instead of the exist one. InvocationStubManager.getInstance().checkEnv(HCallbackStub.class); Intent intent = r.intent; intent.setExtrasClassLoader(VClientImpl.get().getCurrentApplication().getClassLoader()); startActivity(intent); } else { // Start the target Activity in other process. VActivityManager.get().startActivity(r.intent, r.userId); } } }
@Override protected void onCreate(Bundle savedInstanceState) { // The savedInstanceState's classLoader is not exist. super.onCreate(null); finish(); // It seems that we have conflict with the other Android-Plugin-Framework. Intent stubIntent = getIntent(); // Try to acquire the actually component information. StubActivityRecord r = new StubActivityRecord(stubIntent); if (r.intent != null) { if (TextUtils.equals(r.info.processName, VirtualRuntime.getProcessName()) && r.userId == VUserHandle.myUserId()) { // Retry to inject the HCallback to instead of the exist one. InvocationStubManager.getInstance().checkEnv(HCallbackStub.class); Intent intent = r.intent; intent.setExtrasClassLoader(VClientImpl.get().getCurrentApplication().getClassLoader()); startActivity(intent); } else { // Start the target Activity in other process. VActivityManager.get().startActivity(r.intent, r.userId); } } }
} else { try { Reflect.on(VClientImpl.get().getCurrentApplication().getPackageManager()).call("setLastChosenActivity", intent, intent.resolveTypeIfNeeded(getContentResolver()),
Application app = VClientImpl.get().getCurrentApplication(); if (app != null) { try {
} else { try { Reflect.on(VClientImpl.get().getCurrentApplication().getPackageManager()).call("setLastChosenActivity", intent, intent.resolveTypeIfNeeded(getContentResolver()),
Application app = VClientImpl.get().getCurrentApplication(); if (app != null) { try {