Tabnine Logo
MethodProxies$GetActivityInfo.getHostPkg
Code IndexAdd Tabnine to your IDE (free)

How to use
getHostPkg
method
in
com.lody.virtual.client.hook.proxies.pm.MethodProxies$GetActivityInfo

Best Java code snippets using com.lody.virtual.client.hook.proxies.pm.MethodProxies$GetActivityInfo.getHostPkg (Showing top 3 results out of 315)

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: 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;
}
com.lody.virtual.client.hook.proxies.pmMethodProxies$GetActivityInfogetHostPkg

Popular methods of MethodProxies$GetActivityInfo

  • isAppProcess
  • isVisiblePackage

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JFrame (javax.swing)
  • 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