Tabnine Logo
VPackageManager.resolveIntent
Code IndexAdd Tabnine to your IDE (free)

How to use
resolveIntent
method
in
com.lody.virtual.client.ipc.VPackageManager

Best Java code snippets using com.lody.virtual.client.ipc.VPackageManager.resolveIntent (Showing top 6 results out of 315)

origin: android-hacker/VirtualXposed

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    Intent intent = (Intent) args[0];
    String resolvedType = (String) args[1];
    int flags = (int) args[2];
    int userId = VUserHandle.myUserId();
    ResolveInfo resolveInfo = VPackageManager.get().resolveIntent(intent, resolvedType, flags, userId);
    if (resolveInfo == null) {
      resolveInfo = (ResolveInfo) method.invoke(who, args);
    }
    return resolveInfo;
  }
}
origin: android-hacker/VirtualXposed

public synchronized ActivityInfo resolveActivityInfo(Intent intent, int userId) {
  ActivityInfo activityInfo = null;
  if (intent.getComponent() == null) {
    ResolveInfo resolveInfo = VPackageManager.get().resolveIntent(intent, intent.getType(), 0, userId);
    if (resolveInfo != null && resolveInfo.activityInfo != null) {
      activityInfo = resolveInfo.activityInfo;
      intent.setClassName(activityInfo.packageName, activityInfo.name);
    }
  } else {
    activityInfo = resolveActivityInfo(intent.getComponent(), userId);
  }
  if (activityInfo != null) {
    if (activityInfo.targetActivity != null) {
      ComponentName componentName = new ComponentName(activityInfo.packageName, activityInfo.targetActivity);
      activityInfo = VPackageManager.get().getActivityInfo(componentName, 0, userId);
      intent.setComponent(componentName);
    }
  }
  return activityInfo;
}
origin: bzsome/VirtualApp-x326

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    Intent intent = (Intent) args[0];
    String resolvedType = (String) args[1];
    int flags = (int) args[2];
    int userId = VUserHandle.myUserId();
    ResolveInfo resolveInfo = VPackageManager.get().resolveIntent(intent, resolvedType, flags, userId);
    if (resolveInfo == null) {
      resolveInfo = (ResolveInfo) method.invoke(who, args);
    }
    return resolveInfo;
  }
}
origin: darkskygit/VirtualApp

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    Intent intent = (Intent) args[0];
    String resolvedType = (String) args[1];
    int flags = (int) args[2];
    int userId = VUserHandle.myUserId();
    ResolveInfo resolveInfo = VPackageManager.get().resolveIntent(intent, resolvedType, flags, userId);
    if (resolveInfo == null) {
      resolveInfo = (ResolveInfo) method.invoke(who, args);
    }
    return resolveInfo;
  }
}
origin: bzsome/VirtualApp-x326

public synchronized ActivityInfo resolveActivityInfo(Intent intent, int userId) {
  ActivityInfo activityInfo = null;
  if (intent.getComponent() == null) {
    ResolveInfo resolveInfo = VPackageManager.get().resolveIntent(intent, intent.getType(), 0, userId);
    if (resolveInfo != null && resolveInfo.activityInfo != null) {
      activityInfo = resolveInfo.activityInfo;
      intent.setClassName(activityInfo.packageName, activityInfo.name);
    }
  } else {
    activityInfo = resolveActivityInfo(intent.getComponent(), userId);
  }
  if (activityInfo != null) {
    if (activityInfo.targetActivity != null) {
      ComponentName componentName = new ComponentName(activityInfo.packageName, activityInfo.targetActivity);
      activityInfo = VPackageManager.get().getActivityInfo(componentName, 0, userId);
      intent.setComponent(componentName);
    }
  }
  return activityInfo;
}
origin: darkskygit/VirtualApp

public synchronized ActivityInfo resolveActivityInfo(Intent intent, int userId) {
  ActivityInfo activityInfo = null;
  if (intent.getComponent() == null) {
    ResolveInfo resolveInfo = VPackageManager.get().resolveIntent(intent, intent.getType(), 0, userId);
    if (resolveInfo != null && resolveInfo.activityInfo != null) {
      activityInfo = resolveInfo.activityInfo;
      intent.setClassName(activityInfo.packageName, activityInfo.name);
    }
  } else {
    activityInfo = resolveActivityInfo(intent.getComponent(), userId);
  }
  if (activityInfo != null) {
    if (activityInfo.targetActivity != null) {
      ComponentName componentName = new ComponentName(activityInfo.packageName, activityInfo.targetActivity);
      activityInfo = VPackageManager.get().getActivityInfo(componentName, 0, userId);
      intent.setComponent(componentName);
    }
  }
  return activityInfo;
}
com.lody.virtual.client.ipcVPackageManagerresolveIntent

Popular methods of VPackageManager

  • activitySupportsIntent
  • checkPermission
  • get
  • getActivityInfo
  • getApplicationInfo
  • getInstalledApplications
  • getInstalledPackages
  • getNameForUid
  • getPackageInfo
  • getPackageInstaller
  • getPackageUid
  • getPackagesForUid
  • getPackageUid,
  • getPackagesForUid,
  • getPermissionGroupInfo,
  • getProviderInfo,
  • getReceiverInfo,
  • getServiceInfo,
  • queryContentProviders,
  • queryIntentActivities,
  • queryIntentContentProviders,
  • queryIntentReceivers

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • Path (java.nio.file)
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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