From 30e45f863d60c54c6e5381904297165bb5571749 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Thu, 10 Sep 2020 01:01:51 -0700 Subject: [PATCH] Remove unnecessary workaround --- native/jni/su/su_daemon.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/native/jni/su/su_daemon.cpp b/native/jni/su/su_daemon.cpp index 9a608aab1..0bf12e689 100644 --- a/native/jni/su/su_daemon.cpp +++ b/native/jni/su/su_daemon.cpp @@ -330,9 +330,6 @@ void su_daemon_handler(int client, struct ucred *credential) { setenv("SHELL", ctx.req.shell, 1); } } - const char *ld_path = getenv("LD_LIBRARY_PATH"); - if (ld_path && strncmp(ld_path, ":/apex/com.android.runtime/lib", 30) == 0) - unsetenv("LD_LIBRARY_PATH"); // Unblock all signals sigset_t block_set;