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

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

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

origin: android-hacker/VirtualXposed

public ActivityInfo resolveActivityInfo(ComponentName componentName, int userId) {
  return VPackageManager.get().getActivityInfo(componentName, 0, userId);
}
origin: android-hacker/VirtualXposed

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  ComponentName componentName = (ComponentName) args[0];
  if (getHostPkg().equals(componentName.getPackageName())) {
    return method.invoke(who, args);
  }
  int userId = VUserHandle.myUserId();
  int flags = (int) args[1];
  ActivityInfo info = VPackageManager.get().getActivityInfo(componentName, flags, userId);
  if (info == null) {
    info = (ActivityInfo) method.invoke(who, args);
    if (info == null || !isVisiblePackage(info.applicationInfo)) {
      return null;
    }
  }
  return info;
}
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

public ActivityInfo resolveActivityInfo(ComponentName componentName, int userId) {
  return VPackageManager.get().getActivityInfo(componentName, 0, userId);
}
origin: darkskygit/VirtualApp

public ActivityInfo resolveActivityInfo(ComponentName componentName, int userId) {
  return VPackageManager.get().getActivityInfo(componentName, 0, userId);
}
origin: darkskygit/VirtualApp

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  ComponentName componentName = (ComponentName) args[0];
  if (getHostPkg().equals(componentName.getPackageName())) {
    return method.invoke(who, args);
  }
  int userId = VUserHandle.myUserId();
  int flags = (int) args[1];
  ActivityInfo info = VPackageManager.get().getActivityInfo(componentName, flags, userId);
  if (info == null) {
    info = (ActivityInfo) method.invoke(who, args);
    if (info == null || !isVisiblePackage(info.applicationInfo)) {
      return null;
    }
  }
  return info;
}
origin: bzsome/VirtualApp-x326

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  ComponentName componentName = (ComponentName) args[0];
  if (getHostPkg().equals(componentName.getPackageName())) {
    return method.invoke(who, args);
  }
  int userId = VUserHandle.myUserId();
  int flags = (int) args[1];
  ActivityInfo info = VPackageManager.get().getActivityInfo(componentName, flags, userId);
  if (info == null) {
    info = (ActivityInfo) method.invoke(who, args);
    if (info == null || !isVisiblePackage(info.applicationInfo)) {
      return null;
    }
  }
  return info;
}
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.ipcVPackageManagergetActivityInfo

Popular methods of VPackageManager

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Sublime Text plugins
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