File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
VirtualApp/lib/src/main/java/com/lody/virtual/client Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 2424import android .os .Process ;
2525import android .os .RemoteException ;
2626import android .os .StrictMode ;
27- import android .util .Base64 ;
2827import android .util .Log ;
2928
3029import com .lody .virtual .client .core .CrashHandler ;
@@ -461,21 +460,14 @@ private void setupVirtualStorage(ApplicationInfo info, int userId) {
461460
462461 VirtualStorageManager vsManager = VirtualStorageManager .get ();
463462 boolean enable = vsManager .isVirtualStorageEnable (info .packageName , userId );
464- HashSet <String > mountPoints = getMountPoints ();
465463 if (enable ) {
466464 vsManager .setVirtualStorage (info .packageName , userId , vsDir .getPath ());
467465
468466 // redirect for normal path
467+ HashSet <String > mountPoints = getMountPoints ();
469468 for (String mountPoint : mountPoints ) {
470469 NativeEngine .redirectDirectory (mountPoint , vsDir .getPath ());
471470 }
472- } else {
473- final String tStr = new String (Base64 .decode ("dGVuY2VudA==" , 0 ));
474- for (String mountPoint : mountPoints ) {
475- File tDir = new File (mountPoint , tStr );
476- File tRelocateDir = new File (vsDir , tStr );
477- NativeEngine .redirectDirectory (tDir .getAbsolutePath (), tRelocateDir .getAbsolutePath ());
478- }
479471 }
480472 }
481473
You can’t perform that action at this time.
0 commit comments