Tabnine Logo
VEnvironment.getUserSystemDirectory
Code IndexAdd Tabnine 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)

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

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Best plugins for Eclipse
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