bootinge / androhid

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

Does not work on Samsung Galaxy S #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enable Bluetooth
2. Start app

What is the expected output? What do you see instead?

Expected: Application should start and become usable.
Actual: 'This application needs bluetooth. Enable it now?' -> Clicking yes and 
(re-)enabling bluetooth, the message stays, clicking no, the app closes.

It looks like the app does not see that Bluetooth is enabled and thus it keeps 
prompting for it.

What version of the product are you using? On what operating system?
androhid 0.5.4, Android 2.3.4 (I9000XXJVP)

Original issue reported on code.google.com by lev.ar...@gmail.com on 6 Jul 2011 at 9:10

GoogleCodeExporter commented 9 years ago
  while building bluetooth module i am getting the following error
* bluetooth/bluetooth.h no such file or directory.*

Original comment by longer.z...@gmail.com on 30 Aug 2011 at 2:25

GoogleCodeExporter commented 9 years ago
Same problem at Galaxy S I9000B Android 2.3.3.

I looking for HID on Android, I got the code to study.
I would like to develop a service for my bluetooth keyboard HID. 
The application appears to be very interesting, congratulations for the project.

Original comment by mcost...@gmail.com on 28 Sep 2011 at 4:07

GoogleCodeExporter commented 9 years ago
Most of the bluetooth part has to be done in native code to communicate with 
the bluez stack (Read: Why do we need root). This communication procedure can 
possibly differ from  device to device (Although it shouldn't...). To find the 
bug for your device, some low level debugging has to be done which requires 
advanced Linux and C knowledge. Could you a least provide the logcat output 
while the error occurs? With a bit luck I can find the bug there.

Original comment by manuel.l...@gmail.com on 9 Nov 2011 at 3:56

GoogleCodeExporter commented 9 years ago
The same thing seems to be happening on Galaxy S II (Sprint version, SPH-D710). 
 logcat indicates that "adding sdp service failed". That made me think that 
maybe androhid wasn't getting root access correctly, but the log in Superuser 
does indicate that access was granted.

I'm comfortable with debugging native code, although I don't know a ton about 
kernel-level Linux. If there's any more information that might help debug this, 
I'm happy to try to get it.  I'm just starting to set up to build the project 
myself, though, so it could be a little while before I can actually do any 
debugging.

Original comment by for...@gmail.com on 16 Jan 2012 at 12:16

GoogleCodeExporter commented 9 years ago
Wonderful idea! Unfortunately My Galaxy S1 having Cyanogenmod 4.2.2 throws the 
following error:
E/AndroidRuntime(16253): 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(16253):     at 
java.lang.Runtime.loadLibrary(Runtime.java:371)

E/AndroidRuntime(16253):     at 
java.lang.System.loadLibrary(System.java:535)

E/AndroidRuntime(16253):     at 
org.androhid.NativeBtHid.<clinit>(NativeBtHid.java:25)

E/AndroidRuntime(16253):     at 
org.androhid.AndroHid.onCreate(AndroHid.java:77)

E/AndroidRuntime(16253):     at 
android.app.Activity.performCreate(Activity.java:5104)

E/AndroidRuntime(16253):     at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)

E/AndroidRuntime(16253):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)

E/AndroidRuntime(16253):     at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2354)

E/AndroidRuntime(16253):     at 
android.app.ActivityThread.access$600(ActivityThread.java:150)

E/AndroidRuntime(16253):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)

E/AndroidRuntime(16253):     at 
android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime(16253):     at 
android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime(16253):     at 
android.app.ActivityThread.main(ActivityThread.java:5193)

E/AndroidRuntime(16253):     at 
java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(16253):     at 
java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime(16253):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)

E/AndroidRuntime(16253):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)

E/AndroidRuntime(16253):     at 
dalvik.system.NativeStart.main(Native Method) 

Original comment by zsjo...@gmail.com on 28 Mar 2013 at 9:00