widerules / androhid

Automatically exported from code.google.com/p/androhid
0 stars 0 forks source link

Doesn't work with Android 4.2's new BT stack #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There's a new BT stack in Android 4.2 (bluez -> broadcom) which causes your app 
to crash during the start (libbluetooth.so not found).

Some logs:

29418): showStatusIcon on inactive InputConnection
I/ActivityManager(  414): START u0 {act=android.intent.action.MAIN 
cat=[android.intent.category.LAUNCHER] flg=0x10104000 pkg=org.androhid 
cmp=org.androhid/.AndroHid bnds=[733,1920][1149,2180]} from pid 665
I/ActivityManager(  414): Start proc org.androhid for activity 
org.androhid/.AndroHid: pid=29511 uid=10121 gids={50121, 3002, 3001, 1028}
I/dalvikvm(29511): Turning on JNI app bug workarounds for target SDK version 
4...
D/dalvikvm(29511): Trying to load lib 
/data/app-lib/org.androhid-1/libandrohid.so 0x40e19178
E/dalvikvm(29511): dlopen("/data/app-lib/org.androhid-1/libandrohid.so") 
failed: Cannot load library: soinfo_link_image(linker.cpp:1649): could not load 
library "libbluetooth.so" needed by "libandrohid.so"; caused by 
load_library(linker.cpp:747): library "libbluetooth.so" not found
W/dalvikvm(29511): Exception Ljava/lang/UnsatisfiedLinkError; thrown while 
initializing Lorg/androhid/NativeBtHid;
D/AndroidRuntime(29511): Shutting down VM
W/dalvikvm(29511): threadid=1: thread exiting with uncaught exception 
(group=0x40b92930)
E/AndroidRuntime(29511): FATAL EXCEPTION: main
E/AndroidRuntime(29511): java.lang.ExceptionInInitializerError
E/AndroidRuntime(29511):        at 
org.androhid.AndroHid.onCreate(AndroHid.java:77)
E/AndroidRuntime(29511):        at 
android.app.Activity.performCreate(Activity.java:5104)
E/AndroidRuntime(29511):        at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
E/AndroidRuntime(29511):        at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)
E/AndroidRuntime(29511):        at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2354)
E/AndroidRuntime(29511):        at 
android.app.ActivityThread.access$600(ActivityThread.java:150)
E/AndroidRuntime(29511):        at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)
E/AndroidRuntime(29511):        at 
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(29511):        at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(29511):        at 
android.app.ActivityThread.main(ActivityThread.java:5191)
E/AndroidRuntime(29511):        at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(29511):        at 
java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(29511):        at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime(29511):        at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
E/AndroidRuntime(29511):        at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(29511): Caused by: java.lang.UnsatisfiedLinkError: Cannot load 
library: soinfo_link_image(linker.cpp:1649): could not load library 
"libbluetooth.so" needed by "libandrohid.so"; caused by 
load_library(linker.cpp:747): library "libbluetooth.so" not found
E/AndroidRuntime(29511):        at 
java.lang.Runtime.loadLibrary(Runtime.java:371)
E/AndroidRuntime(29511):        at java.lang.System.loadLibrary(System.java:535)
E/AndroidRuntime(29511):        at 
org.androhid.NativeBtHid.<clinit>(NativeBtHid.java:25)
E/AndroidRuntime(29511):        ... 15 more
W/ActivityManager(  414):   Force finishing activity org.androhid/.AndroHid

Original issue reported on code.google.com by chr.eg...@gmail.com on 20 Dec 2012 at 1:39

GoogleCodeExporter commented 9 years ago
I second that. Same issue on CM 4.2.1 running on HTC Sensation.

Original comment by rom...@gmail.com on 27 Feb 2013 at 12:57