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

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • 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
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 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