From 9af26a7cc465ef2473968cfd1092f3ae8bcdbadc Mon Sep 17 00:00:00 2001 From: Geofferey Eakins Date: Wed, 10 Aug 2016 22:55:11 -0700 Subject: [PATCH 1/2] UPDATE LD_LIBRARY_PATH(s) for 64bit Update to LD_LIBRARY_PATH to include "/system/lib64". This edit will allow dropbear/DroidSSHD to obtain the shell and run terminal commands on 64bit devices even if the binary is compiled as 32bit. --- svr-chansession.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr-chansession.c b/svr-chansession.c index 081b8766d..5845c7b4b 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -972,7 +972,7 @@ static void execchild(void *user_data) { addnewvar("ANDROID_ROOT", "/system"); addnewvar("BOOTCLASSPATH", "/system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar"); addnewvar("EXTERNAL_STORAGE", "/sdcard"); - addnewvar("LD_LIBRARY_PATH", "/vendor/lib:/system/lib"); + addnewvar("LD_LIBRARY_PATH", "/vendor/lib:/system/lib:/system/lib64"); } else addnewvar("PATH", DEFAULT_PATH); if (chansess->term != NULL) { From 473abe65b53952a9464ab9d259c0bd753b32498e Mon Sep 17 00:00:00 2001 From: Geofferey Eakins Date: Wed, 10 Aug 2016 23:06:17 -0700 Subject: [PATCH 2/2] UPDATE LD_LIBRARY_PATH(s) for 64bit Upate to file svr-chansession.c variable LD_LIBRARY_PATH to include /vendor/lib64 & /system/lib64 so dropbear can excute the shell and commands on 64bit processors. --- svr-chansession.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr-chansession.c b/svr-chansession.c index 5845c7b4b..c784d7538 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -972,7 +972,7 @@ static void execchild(void *user_data) { addnewvar("ANDROID_ROOT", "/system"); addnewvar("BOOTCLASSPATH", "/system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar"); addnewvar("EXTERNAL_STORAGE", "/sdcard"); - addnewvar("LD_LIBRARY_PATH", "/vendor/lib:/system/lib:/system/lib64"); + addnewvar("LD_LIBRARY_PATH", "/vendor/lib:/vendor/lib64:/system/lib:/system/lib64"); } else addnewvar("PATH", DEFAULT_PATH); if (chansess->term != NULL) {