Codota Logo
VPackageManager.getPackagesForUid
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain VPackageManager
private void myMethod () {
VPackageManager v =
  • Codota IconVPackageManager.get()
  • Smart code suggestions by Codota
}
origin: android-hacker/VirtualXposed

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  int uid = (int) args[0];
  int callingUid = Binder.getCallingUid();
  if (uid == VirtualCore.get().myUid()) {
    uid = getBaseVUid();
  }
  String[] callingPkgs = VPackageManager.get().getPackagesForUid(callingUid);
  String[] targetPkgs = VPackageManager.get().getPackagesForUid(uid);
  String[] selfPkgs = VPackageManager.get().getPackagesForUid(Process.myUid());
  Set<String> pkgList = new ArraySet<>(2);
  if (callingPkgs != null && callingPkgs.length > 0) {
    pkgList.addAll(Arrays.asList(callingPkgs));
  }
  if (targetPkgs != null && targetPkgs.length > 0) {
    pkgList.addAll(Arrays.asList(targetPkgs));
  }
  if (selfPkgs != null && selfPkgs.length > 0) {
    pkgList.addAll(Arrays.asList(selfPkgs));
  }
  return pkgList.toArray(new String[pkgList.size()]);
}
origin: darkskygit/VirtualApp

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  int uid = (int) args[0];
  int callingUid = Binder.getCallingUid();
  if (uid == VirtualCore.get().myUid()) {
    uid = getBaseVUid();
  }
  String[] callingPkgs = VPackageManager.get().getPackagesForUid(callingUid);
  String[] targetPkgs = VPackageManager.get().getPackagesForUid(uid);
  String[] selfPkgs = VPackageManager.get().getPackagesForUid(Process.myUid());
  Set<String> pkgList = new ArraySet<>(2);
  if (callingPkgs != null && callingPkgs.length > 0) {
    pkgList.addAll(Arrays.asList(callingPkgs));
  }
  if (targetPkgs != null && targetPkgs.length > 0) {
    pkgList.addAll(Arrays.asList(targetPkgs));
  }
  if (selfPkgs != null && selfPkgs.length > 0) {
    pkgList.addAll(Arrays.asList(selfPkgs));
  }
  return pkgList.toArray(new String[pkgList.size()]);
}
origin: bzsome/VirtualApp-x326

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  int uid = (int) args[0];
  int callingUid = Binder.getCallingUid();
  if (uid == VirtualCore.get().myUid()) {
    uid = getBaseVUid();
  }
  String[] callingPkgs = VPackageManager.get().getPackagesForUid(callingUid);
  String[] targetPkgs = VPackageManager.get().getPackagesForUid(uid);
  String[] selfPkgs = VPackageManager.get().getPackagesForUid(Process.myUid());
  Set<String> pkgList = new ArraySet<>(2);
  if (callingPkgs != null && callingPkgs.length > 0) {
    pkgList.addAll(Arrays.asList(callingPkgs));
  }
  if (targetPkgs != null && targetPkgs.length > 0) {
    pkgList.addAll(Arrays.asList(targetPkgs));
  }
  if (selfPkgs != null && selfPkgs.length > 0) {
    pkgList.addAll(Arrays.asList(selfPkgs));
  }
  return pkgList.toArray(new String[pkgList.size()]);
}
com.lody.virtual.client.ipcVPackageManagergetPackagesForUid

Popular methods of VPackageManager

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

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • setContentView (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JCheckBox (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now