Tabnine Logo
VBinder.getCallingPid
Code IndexAdd Tabnine to your IDE (free)

How to use
getCallingPid
method
in
com.lody.virtual.os.VBinder

Best Java code snippets using com.lody.virtual.os.VBinder.getCallingPid (Showing top 7 results out of 315)

origin: android-hacker/VirtualXposed

@Override
public void appDoneExecuting() {
  synchronized (mPidsSelfLocked) {
    ProcessRecord r = mPidsSelfLocked.get(VBinder.getCallingPid());
    if (r != null) {
      r.doneExecuting = true;
      r.lock.open();
    }
  }
}
origin: android-hacker/VirtualXposed

@Override
public IBinder acquireProviderClient(int userId, ProviderInfo info) {
  ProcessRecord callerApp;
  synchronized (mPidsSelfLocked) {
    callerApp = findProcessLocked(VBinder.getCallingPid());
  }
  if (callerApp == null) {
    throw new SecurityException("Who are you?");
  }
  String processName = info.processName;
  ProcessRecord r;
  synchronized (this) {
    r = startProcessIfNeedLocked(processName, userId, info.packageName);
  }
  if (r != null && r.client.asBinder().pingBinder()) {
    try {
      return r.client.acquireProviderClient(info);
    } catch (RemoteException e) {
      e.printStackTrace();
    }
  }
  return null;
}
origin: darkskygit/VirtualApp

@Override
public void appDoneExecuting() {
  synchronized (mPidsSelfLocked) {
    ProcessRecord r = mPidsSelfLocked.get(VBinder.getCallingPid());
    if (r != null) {
      r.doneExecuting = true;
      r.lock.open();
    }
  }
}
origin: bzsome/VirtualApp-x326

@Override
public void appDoneExecuting() {
  synchronized (mPidsSelfLocked) {
    ProcessRecord r = mPidsSelfLocked.get(getCallingPid());
    if (r != null) {
      r.doneExecuting = true;
      r.lock.open();
    }
  }
}
origin: darkskygit/VirtualApp

@Override
public IBinder acquireProviderClient(int userId, ProviderInfo info) {
  ProcessRecord callerApp;
  synchronized (mPidsSelfLocked) {
    callerApp = findProcessLocked(VBinder.getCallingPid());
  }
  if (callerApp == null) {
    throw new SecurityException("Who are you?");
  }
  String processName = info.processName;
  ProcessRecord r;
  synchronized (this) {
    r = startProcessIfNeedLocked(processName, userId, info.packageName);
  }
  if (r != null && r.client.asBinder().pingBinder()) {
    try {
      return r.client.acquireProviderClient(info);
    } catch (RemoteException e) {
      e.printStackTrace();
    }
  }
  return null;
}
origin: bzsome/VirtualApp-x326

@Override
public IBinder acquireProviderClient(int userId, ProviderInfo info) {
  ProcessRecord callerApp;
  synchronized (mPidsSelfLocked) {
    callerApp = findProcessLocked(getCallingPid());
  }
  if (callerApp == null) {
    throw new SecurityException("Who are you?");
  }
  String processName = info.processName;
  ProcessRecord r;
  synchronized (this) {
    r = startProcessIfNeedLocked(processName, userId, info.packageName);
  }
  if (r != null && r.client.asBinder().isBinderAlive()) {
    try {
      return r.client.acquireProviderClient(info);
    } catch (RemoteException e) {
      e.printStackTrace();
    }
  }
  return null;
}
origin: bzsome/VirtualApp-x326

@Override
public void processRestarted(String packageName, String processName, int userId) {
  int callingPid = getCallingPid();
  int appId = VAppManagerService.get().getAppId(packageName);
  int uid = VUserHandle.getUid(userId, appId);
  synchronized (this) {
    ProcessRecord app = findProcessLocked(callingPid);
    if (app == null) {
      ApplicationInfo appInfo = VPackageManagerService.get().getApplicationInfo(packageName, 0, userId);
      appInfo.flags |= ApplicationInfo.FLAG_HAS_CODE;
      String stubProcessName = getProcessName(callingPid);
      int vpid = parseVPid(stubProcessName);
      if (vpid != -1) {
        performStartProcessLocked(uid, vpid, appInfo, processName);
      }
    }
  }
}
com.lody.virtual.osVBindergetCallingPid

Popular methods of VBinder

  • getCallingUid

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JLabel (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • 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