Tabnine Logo
MethodProxies$QueryIntentServices
Code IndexAdd Tabnine to your IDE (free)

How to use
MethodProxies$QueryIntentServices
in
com.lody.virtual.client.hook.proxies.pm

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

origin: android-hacker/VirtualXposed

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  boolean slice = ParceledListSliceCompat.isReturnParceledListSlice(method);
  int userId = VUserHandle.myUserId();
  List<ResolveInfo> appResult = VPackageManager.get().queryIntentServices((Intent) args[0],
      (String) args[1], (Integer) args[2], userId);
  Object _hostResult = method.invoke(who, args);
  if (_hostResult != null) {
    List<ResolveInfo> hostResult = slice ? ParceledListSlice.getList.call(_hostResult)
        : (List) _hostResult;
    if (hostResult != null) {
      Iterator<ResolveInfo> iterator = hostResult.iterator();
      while (iterator.hasNext()) {
        ResolveInfo info = iterator.next();
        if (info == null || info.serviceInfo == null || !isVisiblePackage(info.serviceInfo.applicationInfo)) {
          iterator.remove();
        }
      }
      appResult.addAll(hostResult);
    }
  }
  if (slice) {
    return ParceledListSliceCompat.create(appResult);
  }
  return appResult;
}
origin: bzsome/VirtualApp-x326

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  boolean slice = ParceledListSliceCompat.isReturnParceledListSlice(method);
  int userId = VUserHandle.myUserId();
  List<ResolveInfo> appResult = VPackageManager.get().queryIntentServices((Intent) args[0],
      (String) args[1], (Integer) args[2], userId);
  Object _hostResult = method.invoke(who, args);
  if (_hostResult != null) {
    List<ResolveInfo> hostResult = slice ? ParceledListSlice.getList.call(_hostResult)
        : (List) _hostResult;
    if (hostResult != null) {
      Iterator<ResolveInfo> iterator = hostResult.iterator();
      while (iterator.hasNext()) {
        ResolveInfo info = iterator.next();
        if (info == null || info.serviceInfo == null || !isVisiblePackage(info.serviceInfo.applicationInfo)) {
          iterator.remove();
        }
      }
      appResult.addAll(hostResult);
    }
  }
  if (slice) {
    return ParceledListSliceCompat.create(appResult);
  }
  return appResult;
}
origin: darkskygit/VirtualApp

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  boolean slice = ParceledListSliceCompat.isReturnParceledListSlice(method);
  int userId = VUserHandle.myUserId();
  List<ResolveInfo> appResult = VPackageManager.get().queryIntentServices((Intent) args[0],
      (String) args[1], (Integer) args[2], userId);
  Object _hostResult = method.invoke(who, args);
  if (_hostResult != null) {
    List<ResolveInfo> hostResult = slice ? (List<ResolveInfo>) ParceledListSlice.getList.call(_hostResult)
        : (List) _hostResult;
    if (hostResult != null) {
      hostResult.removeIf(info -> info == null || info.serviceInfo == null || !isVisiblePackage(info.serviceInfo.applicationInfo));
      appResult.addAll(hostResult);
    }
  }
  if (slice) {
    return ParceledListSliceCompat.create(appResult);
  }
  return appResult;
}
origin: darkskygit/VirtualApp

  @Override
  public boolean isEnable() {
    return isAppProcess();
  }
}
origin: bzsome/VirtualApp-x326

  @Override
  public boolean isEnable() {
    return isAppProcess();
  }
}
origin: android-hacker/VirtualXposed

  @Override
  public boolean isEnable() {
    return isAppProcess();
  }
}
com.lody.virtual.client.hook.proxies.pmMethodProxies$QueryIntentServices

Most used methods

  • isAppProcess
  • isVisiblePackage

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Vim 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