Tabnine Logo
VUserHandle.myUserId
Code IndexAdd Tabnine to your IDE (free)

How to use
myUserId
method
in
com.lody.virtual.os.VUserHandle

Best Java code snippets using com.lody.virtual.os.VUserHandle.myUserId (Showing top 20 results out of 315)

origin: android-hacker/VirtualXposed

private boolean accept(Intent intent) {
  int uid = intent.getIntExtra("_VA_|_uid_", -1);
  if (uid != -1) {
    return VClientImpl.get().getVUid() == uid;
  }
  int userId = intent.getIntExtra("_VA_|_user_id_", -1);
  return userId == -1 || userId == VUserHandle.myUserId();
}
origin: android-hacker/VirtualXposed

@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
  String permName = (String) args[0];
  String pkgName = (String) args[1];
  int userId = VUserHandle.myUserId();
  return VPackageManager.get().checkPermission(permName, pkgName, userId);
}
origin: android-hacker/VirtualXposed

public AuthenticatorDescription[] getAuthenticatorTypes() {
  try {
    return getRemote().getAuthenticatorTypes(VUserHandle.myUserId());
  } catch (RemoteException e) {
    return VirtualRuntime.crash(e);
  }
}
origin: android-hacker/VirtualXposed

public String peekAuthToken(Account account, String authTokenType) {
  try {
    return getRemote().peekAuthToken(VUserHandle.myUserId(), account, authTokenType);
  } catch (RemoteException e) {
    return VirtualRuntime.crash(e);
  }
}
origin: android-hacker/VirtualXposed

public void clearPassword(Account account) {
  try {
    getRemote().clearPassword(VUserHandle.myUserId(), account);
  } catch (RemoteException e) {
    e.printStackTrace();
  }
}
origin: android-hacker/VirtualXposed

public String getUserData(Account account, String key) {
  try {
    return getRemote().getUserData(VUserHandle.myUserId(), account, key);
  } catch (RemoteException e) {
    return VirtualRuntime.crash(e);
  }
}
origin: android-hacker/VirtualXposed

public String getPackageForToken(IBinder token) {
  try {
    return getService().getPackageForToken(VUserHandle.myUserId(), token);
  } catch (RemoteException e) {
    return VirtualRuntime.crash(e);
  }
}
origin: android-hacker/VirtualXposed

public IBinder peekService(Intent service, String resolvedType) {
  try {
    return getService().peekService(service, resolvedType, VUserHandle.myUserId());
  } catch (RemoteException e) {
    return VirtualRuntime.crash(e);
  }
}
origin: android-hacker/VirtualXposed

public VParceledListSlice getServices(int maxNum, int flags) {
  try {
    return getService().getServices(maxNum, flags, VUserHandle.myUserId());
  } catch (RemoteException e) {
    return VirtualRuntime.crash(e);
  }
}
origin: android-hacker/VirtualXposed

public String getPreviousName(Account account) {
  try {
    return getRemote().getPreviousName(VUserHandle.myUserId(), account);
  } catch (RemoteException e) {
    return VirtualRuntime.crash(e);
  }
}
origin: android-hacker/VirtualXposed

public void renameAccount(IAccountManagerResponse response, Account accountToRename, String newName) {
  try {
    getRemote().renameAccount(VUserHandle.myUserId(), response, accountToRename, newName);
  } catch (RemoteException e) {
    e.printStackTrace();
  }
}
origin: android-hacker/VirtualXposed

public void setPassword(Account account, String password) {
  try {
    getRemote().setPassword(VUserHandle.myUserId(), account, password);
  } catch (RemoteException e) {
    e.printStackTrace();
  }
}
origin: android-hacker/VirtualXposed

public void addAccount(IAccountManagerResponse response, String accountType, String authTokenType, String[] requiredFeatures, boolean expectActivityLaunch, Bundle optionsIn) {
  try {
    getRemote().addAccount(VUserHandle.myUserId(), response, accountType, authTokenType, requiredFeatures, expectActivityLaunch, optionsIn);
  } catch (RemoteException e) {
    e.printStackTrace();
  }
}
origin: android-hacker/VirtualXposed

public void setUserData(Account account, String key, String value) {
  try {
    getRemote().setUserData(VUserHandle.myUserId(), account, key, value);
  } catch (RemoteException e) {
    e.printStackTrace();
  }
}
origin: android-hacker/VirtualXposed

public void getAuthTokenLabel(IAccountManagerResponse response, String accountType, String authTokenType) {
  try {
    getRemote().getAuthTokenLabel(VUserHandle.myUserId(), response, accountType, authTokenType);
  } catch (RemoteException e) {
    e.printStackTrace();
  }
}
origin: android-hacker/VirtualXposed

public ComponentName getCallingActivity(IBinder token) {
  try {
    return getService().getCallingActivity(VUserHandle.myUserId(), token);
  } catch (RemoteException e) {
    return VirtualRuntime.crash(e);
  }
}
origin: android-hacker/VirtualXposed

public void setServiceForeground(ComponentName className, IBinder token, int id, Notification notification, boolean removeNotification) {
  try {
    getService().setServiceForeground(className, token, id, notification,removeNotification,  VUserHandle.myUserId());
  } catch (RemoteException e) {
    e.printStackTrace();
  }
}
origin: android-hacker/VirtualXposed

public boolean unbindService(IServiceConnection connection) {
  try {
    return getService().unbindService(connection, VUserHandle.myUserId());
  } catch (RemoteException e) {
    return VirtualRuntime.crash(e);
  }
}
origin: android-hacker/VirtualXposed

public void unbindFinished(IBinder token, Intent service, boolean doRebind) {
  try {
    getService().unbindFinished(token, service, doRebind, VUserHandle.myUserId());
  } catch (RemoteException e) {
    e.printStackTrace();
  }
}
origin: android-hacker/VirtualXposed

public void serviceDoneExecuting(IBinder token, int type, int startId, int res) {
  try {
    getService().serviceDoneExecuting(token, type, startId, res, VUserHandle.myUserId());
  } catch (RemoteException e) {
    e.printStackTrace();
  }
}
com.lody.virtual.osVUserHandlemyUserId

Javadoc

Returns the user id of the current process

Popular methods of VUserHandle

  • <init>
    Instantiate a new VUserHandle from the data in a Parcel that was previously written with #writeToPar
  • equals
  • formatUid
  • getAppId
    Returns the app id (or base vuid) for a given vuid, stripping out the user id from it.
  • getCallingUserId
  • getIdentifier
    Returns the userId stored in this VUserHandle.
  • getUid
    Returns the vuid that is composed from the userId and the appId.
  • getUserId
    Returns the user id for a given vuid.
  • writeToParcel
    Write a VUserHandle to a Parcel, handling null pointers. Must be read with #readFromParcel(Parcel).
  • myAppId

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • 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
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • 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