Skip to content

Commit

Permalink
修复支付宝某些页面打不开的问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Aug 30, 2018
1 parent e42d0f4 commit a6a7d50
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit a6a7d50

Please sign in to comment.