Codota Logo
VEnvironment.getUserSystemDirectory
Code IndexAdd Codota to your IDE (free)

How to use
getUserSystemDirectory
method
in
com.lody.virtual.os.VEnvironment

Best Java code snippets using com.lody.virtual.os.VEnvironment.getUserSystemDirectory (Showing top 18 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: android-hacker/VirtualXposed

public static File getDataUserPackageDirectory(int userId,
                        String packageName) {
  return ensureCreated(new File(getUserSystemDirectory(userId), packageName));
}
origin: android-hacker/VirtualXposed

public static File getWifiMacFile(int userId) {
  // return new File(getUserSystemDirectory(userId), "wifiMacAddress");
  return new File(getUserSystemDirectory(userId), EncodeUtils.decode("d2lmaU1hY0FkZHJlc3M="));
}
origin: android-hacker/VirtualXposed

void restoreFactoryState() {
  VLog.w(TAG, "Warning: Restore the factory state...");
  VEnvironment.getDalvikCacheDirectory().delete();
  VEnvironment.getUserSystemDirectory().delete();
  VEnvironment.getDataAppDirectory().delete();
}
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

userInfo.creationTime = (now > EPOCH_PLUS_30_YEARS) ? now : 0;
userInfo.partial = true;
VEnvironment.getUserSystemDirectory(userInfo.id).mkdirs();
mUsers.put(userId, userInfo);
writeUserListLocked();
origin: android-hacker/VirtualXposed

@SuppressLint("SdCardPath")
private void startIOUniformer() {
  ApplicationInfo info = mBoundApplication.appInfo;
  int userId = VUserHandle.myUserId();
  String wifiMacAddressFile = deviceInfo.getWifiFile(userId).getPath();
  NativeEngine.redirectDirectory("/sys/class/net/wlan0/address", wifiMacAddressFile);
  NativeEngine.redirectDirectory("/sys/class/net/eth0/address", wifiMacAddressFile);
  NativeEngine.redirectDirectory("/sys/class/net/wifi/address", wifiMacAddressFile);
  NativeEngine.redirectDirectory("/data/data/" + info.packageName, info.dataDir);
  NativeEngine.redirectDirectory("/data/user/0/" + info.packageName, info.dataDir);
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
    NativeEngine.redirectDirectory("/data/user_de/0/" + info.packageName, info.dataDir);
  }
  String libPath = VEnvironment.getAppLibDirectory(info.packageName).getAbsolutePath();
  String userLibPath = new File(VEnvironment.getUserSystemDirectory(userId), info.packageName + "/lib").getAbsolutePath();
  NativeEngine.redirectDirectory(userLibPath, libPath);
  NativeEngine.redirectDirectory("/data/data/" + info.packageName + "/lib/", libPath);
  NativeEngine.redirectDirectory("/data/user/0/" + info.packageName + "/lib/", libPath);
  File dataUserLib = new File(VEnvironment.getDataUserPackageDirectory(userId, info.packageName), "lib");
  if (!dataUserLib.exists()) {
    try {
      Os.symlink(libPath, dataUserLib.getPath());
    } catch (ErrnoException e) {
      VLog.w(TAG, "symlink error", e);
    }
  }
  setupVirtualStorage(info, userId);
  NativeEngine.enableIORedirect();
}
origin: bzsome/VirtualApp-x326

public static File getWifiMacFile(int userId) {
  return new File(getUserSystemDirectory(userId), "wifiMacAddress");
}
origin: darkskygit/VirtualApp

public static File getWifiMacFile(int userId) {
  // return new File(getUserSystemDirectory(userId), "wifiMacAddress");
  return new File(getUserSystemDirectory(userId), EncodeUtils.decode("d2lmaU1hY0FkZHJlc3M="));
}
origin: darkskygit/VirtualApp

public static File getDataUserPackageDirectory(int userId,
                        String packageName) {
  return ensureCreated(new File(getUserSystemDirectory(userId), packageName));
}
origin: bzsome/VirtualApp-x326

public static File getDataUserPackageDirectory(int userId,
                        String packageName) {
  return ensureCreated(new File(getUserSystemDirectory(userId), packageName));
}
origin: bzsome/VirtualApp-x326

void restoreFactoryState() {
  VLog.w(TAG, "Warning: Restore the factory state...");
  VEnvironment.getDalvikCacheDirectory().delete();
  VEnvironment.getUserSystemDirectory().delete();
  VEnvironment.getDataAppDirectory().delete();
}
origin: darkskygit/VirtualApp

void restoreFactoryState() {
  VLog.w(TAG, "Warning: Restore the factory state...");
  VEnvironment.getDalvikCacheDirectory().delete();
  VEnvironment.getUserSystemDirectory().delete();
  VEnvironment.getDataAppDirectory().delete();
}
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

userInfo.creationTime = (now > EPOCH_PLUS_30_YEARS) ? now : 0;
userInfo.partial = true;
VEnvironment.getUserSystemDirectory(userInfo.id).mkdirs();
mUsers.put(userId, userInfo);
writeUserListLocked();
origin: bzsome/VirtualApp-x326

userInfo.creationTime = (now > EPOCH_PLUS_30_YEARS) ? now : 0;
userInfo.partial = true;
VEnvironment.getUserSystemDirectory(userInfo.id).mkdirs();
mUsers.put(userId, userInfo);
writeUserListLocked();
origin: bzsome/VirtualApp-x326

String userLibPath = new File(VEnvironment.getUserSystemDirectory(userId), info.packageName + "/lib").getAbsolutePath();
NativeEngine.redirectDirectory(userLibPath, libPath);
NativeEngine.redirectDirectory("/data/data/" + info.packageName + "/lib/", libPath);
origin: darkskygit/VirtualApp

if (!info.packageName.contains("tencent")) TencentDirRedirect = RootDirKiller;
RedirectSameDstPaths(Arrays.asList(new File(VEnvironment.getUserSystemDirectory(userId), info.packageName + "/lib").getAbsolutePath(),
    "/data/data/" + info.packageName + "/lib/", "/data/user/0/" + info.packageName + "/lib/"), libPath);
RedirectSDCardPaths(new HashMap<String, String>() {{
com.lody.virtual.osVEnvironmentgetUserSystemDirectory

Popular methods of VEnvironment

  • ensureCreated
  • getAccountConfigFile
  • getAppLibDirectory
  • getBakUidListFile
  • getDalvikCacheDirectory
  • getDataAppDirectory
  • getDataAppPackageDirectory
  • getDataDirectory
  • getDataUserPackageDirectory
  • getDeviceInfoFile
  • getJobConfigFile
  • getOdexFile
  • getJobConfigFile,
  • getOdexFile,
  • getPackageCacheFile,
  • getPackageInstallerStageDir,
  • getPackageListFile,
  • getPackageResourcePath,
  • getSignatureFile,
  • getSystemSecureDirectory,
  • getUidListFile

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • 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
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JComboBox (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
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