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

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

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

origin: android-hacker/VirtualXposed

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    int flags = (int) args[0];
    int userId = VUserHandle.myUserId();
    List<PackageInfo> packageInfos;
    if (isAppProcess()) {
      packageInfos = new ArrayList<>(VirtualCore.get().getInstalledAppCount());
    } else {
      packageInfos = VirtualCore.get().getUnHookPackageManager().getInstalledPackages(flags);
    }
    packageInfos.addAll(VPackageManager.get().getInstalledPackages(flags, userId));
    if (ParceledListSliceCompat.isReturnParceledListSlice(method)) {
      return ParceledListSliceCompat.create(packageInfos);
    } else {
      return packageInfos;
    }
  }
}
origin: darkskygit/VirtualApp

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    int flags = (int) args[0];
    int userId = VUserHandle.myUserId();
    List<PackageInfo> packageInfos;
    if (isAppProcess()) {
      packageInfos = new ArrayList<>(VirtualCore.get().getInstalledAppCount());
    } else {
      packageInfos = VirtualCore.get().getUnHookPackageManager().getInstalledPackages(flags);
    }
    packageInfos.addAll(VPackageManager.get().getInstalledPackages(flags, userId));
    if (ParceledListSliceCompat.isReturnParceledListSlice(method)) {
      return ParceledListSliceCompat.create(packageInfos);
    } else {
      return packageInfos;
    }
  }
}
origin: bzsome/VirtualApp-x326

  @Override
  public Object call(Object who, Method method, Object... args) throws Throwable {
    int flags = (int) args[0];
    int userId = VUserHandle.myUserId();
    List<PackageInfo> packageInfos;
    if (isAppProcess()) {
      packageInfos = new ArrayList<>(VirtualCore.get().getInstalledAppCount());
    } else {
      packageInfos = VirtualCore.get().getUnHookPackageManager().getInstalledPackages(flags);
    }
    packageInfos.addAll(VPackageManager.get().getInstalledPackages(flags, userId));
    if (ParceledListSliceCompat.isReturnParceledListSlice(method)) {
      return ParceledListSliceCompat.create(packageInfos);
    } else {
      return packageInfos;
    }
  }
}
com.lody.virtual.client.ipcVPackageManagergetInstalledPackages

Popular methods of VPackageManager

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

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • 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
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top plugins for Android Studio
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