Skip to content

Commit a6a7d50

Browse files
author
tiann
committed
修复支付宝某些页面打不开的问题。
1 parent e42d0f4 commit a6a7d50

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

VirtualApp/lib/src/main/java/com/lody/virtual/client/VClientImpl.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
import android.os.Process;
2626
import android.os.RemoteException;
2727
import android.os.StrictMode;
28+
import android.system.ErrnoException;
29+
import android.system.Os;
2830

2931
import com.lody.virtual.client.core.CrashHandler;
3032
import com.lody.virtual.client.core.InvocationStubManager;
@@ -480,6 +482,15 @@ private void startIOUniformer() {
480482
NativeEngine.redirectDirectory("/data/data/" + info.packageName + "/lib/", libPath);
481483
NativeEngine.redirectDirectory("/data/user/0/" + info.packageName + "/lib/", libPath);
482484

485+
File dataUserLib = new File(VEnvironment.getDataUserPackageDirectory(userId, info.packageName), "lib");
486+
if (!dataUserLib.exists()) {
487+
try {
488+
Os.symlink(libPath, dataUserLib.getPath());
489+
} catch (ErrnoException e) {
490+
VLog.w(TAG, "symlink error", e);
491+
}
492+
}
493+
483494
setupVirtualStorage(info, userId);
484495

485496
NativeEngine.enableIORedirect();

0 commit comments

Comments
 (0)