Permalink
Browse files

allow libdvm_compat.so to be outside of the android path if --use-dvm…

… is used
  • Loading branch information...
1 parent 09ac38e commit 99148067bf5443d0fdc4f3778432ba701dece772 @krnlyng krnlyng committed Apr 9, 2014
Showing with 3 additions and 6 deletions.
  1. +3 −6 apkenv.c
View
@@ -498,13 +498,10 @@ int main(int argc, char **argv)
hooks_init();
if(global.use_dvm) {
- char path[PATH_MAX];
- strcpy(path, global.android_path);
- strcat(path, "/system/lib/");
- strcpy(android_sopath, path);
+ strcpy(android_sopath, global.android_path);
+ strcat(android_sopath, "/system/lib/");
add_sopath(android_sopath);
- strcat(path, "libdvm_compat.so");
- libdvm_handle = android_dlopen(path, RTLD_LAZY);
+ libdvm_handle = android_dlopen("libdvm_compat.so", RTLD_LAZY);
if(NULL == libdvm_handle) {
printf("ERROR: could not load libdvm_compat.so.\n");
libdvm_handle = NULL;

0 comments on commit 9914806

Please sign in to comment.