Skip to content

Commit

Permalink
Fix java.lang.UnsatisfiedLinkError error.
Browse files Browse the repository at this point in the history
Change shared library name from libandroidterm to libandroidterm2

My theory is that this bug is happening on systems that have
system versions of the libandroidterm shared library.

Version 1.0.26 of Android Terminal Emulator added a new API,
hangupProcessGroup, to the libandroidterm library.

I think on devices that have libandroidterm in their system library,
that version takes precedence over the version in the application,
and so the hangupProcessGroup API is not found.

By changing the name of the libandroidterm library to libandroidterm2
we should avoid loading the system version of the
libandroidterm library.
  • Loading branch information
jackpal committed Apr 25, 2011
1 parent f37de50 commit 28d47b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jni/Android.mk
Expand Up @@ -21,7 +21,7 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

# This is the target being built.
LOCAL_MODULE:= libandroidterm
LOCAL_MODULE:= libandroidterm2

# All of the source files that we will compile.
LOCAL_SRC_FILES:= \
Expand Down
2 changes: 1 addition & 1 deletion src/jackpal/androidterm/Exec.java
Expand Up @@ -30,7 +30,7 @@
public class Exec
{
static {
System.loadLibrary("androidterm");
System.loadLibrary("androidterm2");
}

/**
Expand Down

0 comments on commit 28d47b8

Please sign in to comment.