File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
VirtualApp/lib/src/main/java/com/lody/virtual/client Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 2525import android .os .Process ;
2626import android .os .RemoteException ;
2727import android .os .StrictMode ;
28+ import android .system .ErrnoException ;
29+ import android .system .Os ;
2830
2931import com .lody .virtual .client .core .CrashHandler ;
3032import 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 ();
You can’t perform that action at this time.
0 commit comments