diff --git a/VirtualApp/lib/src/main/java/com/lody/virtual/client/VClientImpl.java b/VirtualApp/lib/src/main/java/com/lody/virtual/client/VClientImpl.java index 30849a4da..599539ac6 100644 --- a/VirtualApp/lib/src/main/java/com/lody/virtual/client/VClientImpl.java +++ b/VirtualApp/lib/src/main/java/com/lody/virtual/client/VClientImpl.java @@ -25,6 +25,8 @@ import android.os.Process; import android.os.RemoteException; import android.os.StrictMode; +import android.system.ErrnoException; +import android.system.Os; import com.lody.virtual.client.core.CrashHandler; import com.lody.virtual.client.core.InvocationStubManager; @@ -480,6 +482,15 @@ private void startIOUniformer() { 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();