Codota Logo
VUserManagerService.updateUserIdsLocked
Code IndexAdd Codota to your IDE (free)

How to use
updateUserIdsLocked
method
in
com.lody.virtual.server.pm.VUserManagerService

Best Java code snippets using com.lody.virtual.server.pm.VUserManagerService.updateUserIdsLocked (Showing top 12 results out of 315)

  • Common ways to obtain VUserManagerService
private void myMethod () {
VUserManagerService v =
  • Codota IconVPackageManagerService pm;Object packagesLock;new VUserManagerService(VirtualCore.get().getContext(), pm, new char[0], packagesLock)
  • Smart code suggestions by Codota
}
origin: android-hacker/VirtualXposed

private void fallbackToSingleUserLocked() {
  // Create the primary user
  VUserInfo primary = new VUserInfo(0,
      mContext.getResources().getString(R.string.owner_name), null,
      VUserInfo.FLAG_ADMIN | VUserInfo.FLAG_PRIMARY | VUserInfo.FLAG_INITIALIZED);
  mUsers.put(0, primary);
  mNextSerialNumber = MIN_USER_ID;
  updateUserIdsLocked();
  writeUserListLocked();
  writeUserLocked(primary);
}
origin: android-hacker/VirtualXposed

private void removeUserStateLocked(int userHandle) {
  // Cleanup package manager settings
  mPm.cleanUpUser(userHandle);
  // Remove this user from the list
  mUsers.remove(userHandle);
  mRemovingUserIds.remove(userHandle);
  // Remove user file
  AtomicFile userFile = new AtomicFile(new File(mUsersDir, userHandle + ".xml"));
  userFile.delete();
  // Update the user list
  writeUserListLocked();
  updateUserIdsLocked();
  removeDirectoryRecursive(VEnvironment.getUserSystemDirectory(userHandle));
}
origin: android-hacker/VirtualXposed

  updateUserIdsLocked();
  upgradeIfNecessary();
} catch (IOException ioe) {
origin: android-hacker/VirtualXposed

userInfo.partial = false;
writeUserLocked(userInfo);
updateUserIdsLocked();
origin: darkskygit/VirtualApp

private void fallbackToSingleUserLocked() {
  // Create the primary user
  VUserInfo primary = new VUserInfo(0,
      mContext.getResources().getString(R.string.owner_name), null,
      VUserInfo.FLAG_ADMIN | VUserInfo.FLAG_PRIMARY | VUserInfo.FLAG_INITIALIZED);
  mUsers.put(0, primary);
  mNextSerialNumber = MIN_USER_ID;
  updateUserIdsLocked();
  writeUserListLocked();
  writeUserLocked(primary);
}
origin: bzsome/VirtualApp-x326

private void fallbackToSingleUserLocked() {
  // Create the primary user
  VUserInfo primary = new VUserInfo(0,
      mContext.getResources().getString(R.string.owner_name), null,
      VUserInfo.FLAG_ADMIN | VUserInfo.FLAG_PRIMARY | VUserInfo.FLAG_INITIALIZED);
  mUsers.put(0, primary);
  mNextSerialNumber = MIN_USER_ID;
  updateUserIdsLocked();
  writeUserListLocked();
  writeUserLocked(primary);
}
origin: bzsome/VirtualApp-x326

private void removeUserStateLocked(int userHandle) {
  // Cleanup package manager settings
  mPm.cleanUpUser(userHandle);
  // Remove this user from the list
  mUsers.remove(userHandle);
  mRemovingUserIds.remove(userHandle);
  // Remove user file
  AtomicFile userFile = new AtomicFile(new File(mUsersDir, userHandle + ".xml"));
  userFile.delete();
  // Update the user list
  writeUserListLocked();
  updateUserIdsLocked();
  removeDirectoryRecursive(VEnvironment.getUserSystemDirectory(userHandle));
}
origin: darkskygit/VirtualApp

private void removeUserStateLocked(int userHandle) {
  // Cleanup package manager settings
  mPm.cleanUpUser(userHandle);
  // Remove this user from the list
  mUsers.remove(userHandle);
  mRemovingUserIds.remove(userHandle);
  // Remove user file
  AtomicFile userFile = new AtomicFile(new File(mUsersDir, userHandle + ".xml"));
  userFile.delete();
  // Update the user list
  writeUserListLocked();
  updateUserIdsLocked();
  removeDirectoryRecursive(VEnvironment.getUserSystemDirectory(userHandle));
}
origin: darkskygit/VirtualApp

  updateUserIdsLocked();
  upgradeIfNecessary();
} catch (IOException ioe) {
origin: bzsome/VirtualApp-x326

  updateUserIdsLocked();
  upgradeIfNecessary();
} catch (IOException ioe) {
origin: darkskygit/VirtualApp

userInfo.partial = false;
writeUserLocked(userInfo);
updateUserIdsLocked();
origin: bzsome/VirtualApp-x326

userInfo.partial = false;
writeUserLocked(userInfo);
updateUserIdsLocked();
com.lody.virtual.server.pmVUserManagerServiceupdateUserIdsLocked

Javadoc

Caches the list of user ids in an array, adjusting the array size when necessary.

Popular methods of VUserManagerService

  • <init>
    Available for testing purposes.
  • checkManageUsersPermission
    Enforces that only the system UID or root's UID or apps that have the {android.Manifest.permission.M
  • createUser
  • exists
  • fallbackToSingleUserLocked
  • finishRemoveUser
  • get
  • getNextAvailableIdLocked
    Returns the next available user id, filling in any holes in the ids. TODO: May not be a good idea to
  • getUserIds
    Returns an array of user ids. This array is cached here for quick access, so do not modify or cache
  • getUserInfoLocked
  • isUserLimitReachedLocked
    Check if we've hit the limit of how many users can be created.
  • readIntAttribute
  • isUserLimitReachedLocked,
  • readIntAttribute,
  • readLongAttribute,
  • readUser,
  • readUserListLocked,
  • removeDirectoryRecursive,
  • removeUser,
  • removeUserStateLocked,
  • sendUserInfoChangedBroadcast

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • 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
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Notification (javax.management)
  • JPanel (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
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