Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,15 @@ private int execGuestProgram() {

String ld_preload = "";
String sysvPath = imageFs.getLibDir() + "/libandroid-sysvshm.so";
String evshimPath = context.getApplicationInfo().nativeLibraryDir + "/libevshim.so";
String replacePath = imageFs.getLibDir() + "/" + BuildConfig.PRELOAD_BIONIC_SO;

if (new File(sysvPath).exists()) ld_preload += sysvPath;


String evshimPath = context.getApplicationInfo().nativeLibraryDir + "/libevshim.so";
ld_preload += ":" + evshimPath;
ld_preload += ":" + replacePath;

if (BuildConfig.MODERN_ANDROID || BuildConfig.MODERN_XR) {
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
Outdated
String replacePath = imageFs.getLibDir() + "/" + BuildConfig.PRELOAD_BIONIC_SO;
ld_preload += ":" + replacePath;
}

envVars.put("LD_PRELOAD", ld_preload);
envVars.put("EVSHIM_WINE", 1);
Expand Down Expand Up @@ -671,12 +672,14 @@ public String execShellCommand(String command, boolean includeStderr) {
envVars.put("SteamGameId", "0");

String ld_preload = "";
String sysvPath = imageFs.getLibDir() + "/libandroid-sysvshm.so";
String replacePath = imageFs.getLibDir() + "/" + BuildConfig.PRELOAD_BIONIC_SO;

String sysvPath = imageFs.getLibDir() + "/libandroid-sysvshm.so";
if (new File(sysvPath).exists()) ld_preload += sysvPath;

ld_preload += ":" + replacePath;
if (BuildConfig.MODERN_ANDROID || BuildConfig.MODERN_XR) {
String replacePath = imageFs.getLibDir() + "/" + BuildConfig.PRELOAD_BIONIC_SO;
ld_preload += ":" + replacePath;
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.

envVars.put("LD_PRELOAD", ld_preload);

Expand Down
Binary file modified app/src/modern/assets/libredirect-bionic-wx.so
Binary file not shown.
Loading