congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BundleCompat
Code IndexAdd Tabnine to your IDE (free)

How to use
BundleCompat
in
com.lody.virtual.helper.compat

Best Java code snippets using com.lody.virtual.helper.compat.BundleCompat (Showing top 20 results out of 315)

origin: android-hacker/VirtualXposed

@Override
public void callActivityOnCreate(Activity activity, Bundle icicle, PersistableBundle persistentState) {
  if (icicle != null) {
    BundleCompat.clearParcelledData(icicle);
  }
  super.callActivityOnCreate(activity, icicle, persistentState);
}
origin: android-hacker/VirtualXposed

private ProcessRecord performStartProcessLocked(int vuid, int vpid, ApplicationInfo info, String processName) {
  ProcessRecord app = new ProcessRecord(info, processName, vuid, vpid);
  Bundle extras = new Bundle();
  BundleCompat.putBinder(extras, "_VA_|_binder_", app);
  extras.putInt("_VA_|_vuid_", vuid);
  extras.putString("_VA_|_process_", processName);
  extras.putString("_VA_|_pkg_", info.packageName);
  Bundle res = ProviderCall.call(VASettings.getStubAuthority(vpid), "_VA_|_init_process_", null, extras);
  if (res == null) {
    return null;
  }
  int pid = res.getInt("_VA_|_pid_");
  IBinder clientBinder = BundleCompat.getBinder(res, "_VA_|_client_");
  attachClient(pid, clientBinder);
  return app;
}
origin: android-hacker/VirtualXposed

@Override
public Bundle call(String method, String arg, Bundle extras) {
  if ("@".equals(method)) {
    Bundle bundle = new Bundle();
    BundleCompat.putBinder(bundle, "_VA_|_binder_", mServiceFetcher);
    return bundle;
  }
  return null;
}
origin: android-hacker/VirtualXposed

public static IUiCallback getUiCallback(Intent intent) {
  if (intent == null) {
    return null;
  }
  // only for launch intent.
  if (!Intent.ACTION_MAIN.equals(intent.getAction())) {
    return null;
  }
  try {
    Bundle bundle = intent.getBundleExtra("_VA_|_sender_");
    if (bundle != null) {
      IBinder uicallbackToken = BundleCompat.getBinder(bundle, "_VA_|_ui_callback_");
      return IUiCallback.Stub.asInterface(uicallbackToken);
    }
  } catch (Throwable ignored) {
  }
  return null;
}
origin: android-hacker/VirtualXposed

public void setUiCallback(Intent intent, IUiCallback callback) {
  if (callback != null) {
    Bundle bundle = new Bundle();
    BundleCompat.putBinder(bundle, "_VA_|_ui_callback_", callback.asBinder());
    intent.putExtra("_VA_|_sender_", bundle);
  }
}
origin: android-hacker/VirtualXposed

private static IServiceFetcher getServiceFetcher() {
  if (sFetcher == null || !sFetcher.asBinder().isBinderAlive()) {
    synchronized (ServiceManagerNative.class) {
      Context context = VirtualCore.get().getContext();
      Bundle response = new ProviderCall.Builder(context, SERVICE_CP_AUTH).methodName("@").call();
      if (response != null) {
        IBinder binder = BundleCompat.getBinder(response, "_VA_|_binder_");
        linkBinderDied(binder);
        sFetcher = IServiceFetcher.Stub.asInterface(binder);
      }
    }
  }
  return sFetcher;
}
origin: android-hacker/VirtualXposed

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;
}
origin: darkskygit/VirtualApp

@Override
public Bundle call(String method, String arg, Bundle extras) {
  if ("@".equals(method)) {
    Bundle bundle = new Bundle();
    BundleCompat.putBinder(bundle, "_VA_|_binder_", mServiceFetcher);
    return bundle;
  }
  return null;
}
origin: android-hacker/VirtualXposed

@Override
public void callActivityOnCreate(Activity activity, Bundle icicle) {
  if (icicle != null) {
    BundleCompat.clearParcelledData(icicle);
origin: darkskygit/VirtualApp

public static IUiCallback getUiCallback(Intent intent) {
  if (intent == null) {
    return null;
  }
  // only for launch intent.
  if (!Intent.ACTION_MAIN.equals(intent.getAction())) {
    return null;
  }
  try {
    Bundle bundle = intent.getBundleExtra("_VA_|_sender_");
    if (bundle != null) {
      IBinder uicallbackToken = BundleCompat.getBinder(bundle, "_VA_|_ui_callback_");
      return IUiCallback.Stub.asInterface(uicallbackToken);
    }
  } catch (Throwable ignored) {
  }
  return null;
}
origin: bzsome/VirtualApp-x326

private ProcessRecord performStartProcessLocked(int vuid, int vpid, ApplicationInfo info, String processName) {
  ProcessRecord app = new ProcessRecord(info, processName, vuid, vpid);
  Bundle extras = new Bundle();
  BundleCompat.putBinder(extras, "_VA_|_binder_", app);
  extras.putInt("_VA_|_vuid_", vuid);
  extras.putString("_VA_|_process_", processName);
  extras.putString("_VA_|_pkg_", info.packageName);
  Bundle res = ProviderCall.call(VASettings.getStubAuthority(vpid), "_VA_|_init_process_", null, extras);
  if (res == null) {
    return null;
  }
  int pid = res.getInt("_VA_|_pid_");
  IBinder clientBinder = BundleCompat.getBinder(res, "_VA_|_client_");
  attachClient(pid, clientBinder);
  return app;
}
origin: bzsome/VirtualApp-x326

@Override
public Bundle call(String method, String arg, Bundle extras) {
  if ("@".equals(method)) {
    Bundle bundle = new Bundle();
    BundleCompat.putBinder(bundle, "_VA_|_binder_", mServiceFetcher);
    return bundle;
  }
  if ("register".equals(method)) {
  }
  return null;
}
origin: darkskygit/VirtualApp

@Override
public void callActivityOnCreate(Activity activity, Bundle icicle, PersistableBundle persistentState) {
  if (icicle != null) {
    BundleCompat.clearParcelledData(icicle);
  }
  super.callActivityOnCreate(activity, icicle, persistentState);
}
origin: darkskygit/VirtualApp

private static IServiceFetcher getServiceFetcher() {
  if (sFetcher == null || !sFetcher.asBinder().isBinderAlive()) {
    synchronized (ServiceManagerNative.class) {
      Context context = VirtualCore.get().getContext();
      Bundle response = new ProviderCall.Builder(context, SERVICE_CP_AUTH).methodName("@").call();
      if (response != null) {
        IBinder binder = BundleCompat.getBinder(response, "_VA_|_binder_");
        linkBinderDied(binder);
        sFetcher = IServiceFetcher.Stub.asInterface(binder);
      }
    }
  }
  return sFetcher;
}
origin: darkskygit/VirtualApp

private ProcessRecord performStartProcessLocked(int vuid, int vpid, ApplicationInfo info, String processName) {
  ProcessRecord app = new ProcessRecord(info, processName, vuid, vpid);
  Bundle extras = new Bundle();
  BundleCompat.putBinder(extras, "_VA_|_binder_", app);
  extras.putInt("_VA_|_vuid_", vuid);
  extras.putString("_VA_|_process_", processName);
  extras.putString("_VA_|_pkg_", info.packageName);
  Bundle res = ProviderCall.call(VASettings.getStubAuthority(vpid), "_VA_|_init_process_", null, extras);
  if (res == null) {
    return null;
  }
  int pid = res.getInt("_VA_|_pid_");
  IBinder clientBinder = BundleCompat.getBinder(res, "_VA_|_client_");
  attachClient(pid, clientBinder);
  return app;
}
origin: bzsome/VirtualApp-x326

public void setUiCallback(Intent intent, IUiCallback callback) {
  if (callback != null) {
    Bundle bundle = new Bundle();
    BundleCompat.putBinder(bundle, "_VA_|_ui_callback_", callback.asBinder());
    intent.putExtra("_VA_|_sender_", bundle);
  }
}
origin: bzsome/VirtualApp-x326

@Override
public void callActivityOnCreate(Activity activity, Bundle icicle, PersistableBundle persistentState) {
  if (icicle != null) {
    BundleCompat.clearParcelledData(icicle);
  }
  super.callActivityOnCreate(activity, icicle, persistentState);
}
origin: bzsome/VirtualApp-x326

private static IServiceFetcher getServiceFetcher() {
  if (sFetcher == null || !sFetcher.asBinder().isBinderAlive()) {
    synchronized (ServiceManagerNative.class) {
      Context context = VirtualCore.get().getContext();
      Bundle response = new ProviderCall.Builder(context, SERVICE_CP_AUTH).methodName("@").call();
      if (response != null) {
        IBinder binder = BundleCompat.getBinder(response, "_VA_|_binder_");
        linkBinderDied(binder);
        sFetcher = IServiceFetcher.Stub.asInterface(binder);
      }
    }
  }
  return sFetcher;
}
origin: bzsome/VirtualApp-x326

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;
}
origin: darkskygit/VirtualApp

public void setUiCallback(Intent intent, IUiCallback callback) {
  if (callback != null) {
    Bundle bundle = new Bundle();
    BundleCompat.putBinder(bundle, "_VA_|_ui_callback_", callback.asBinder());
    intent.putExtra("_VA_|_sender_", bundle);
  }
}
com.lody.virtual.helper.compatBundleCompat

Most used methods

  • clearParcelledData
  • getBinder
  • putBinder

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now