Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Does not work on Samsung Galaxy S #4

Open
GoogleCodeExporter opened this issue May 2, 2015 · 5 comments
Open

Does not work on Samsung Galaxy S #4

GoogleCodeExporter opened this issue May 2, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 6 Jul 2011 at 9:10

@GoogleCodeExporter
Copy link
Author

  while building bluetooth module i am getting the following error
* bluetooth/bluetooth.h no such file or directory.*

Original comment by [email protected] on 30 Aug 2011 at 2:25

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 28 Sep 2011 at 4:07

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 9 Nov 2011 at 3:56

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 16 Jan 2012 at 12:16

@GoogleCodeExporter
Copy link
Author

Wonderful idea! Unfortunately My Galaxy S1 having Cyanogenmod 4.2.2 throws the 
following error:
�[0m�[38;5;196mE/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

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
java.lang.Runtime.loadLibrary(Runtime.java:371)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
java.lang.System.loadLibrary(System.java:535)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
org.androhid.NativeBtHid.<clinit>(NativeBtHid.java:25)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
org.androhid.AndroHid.onCreate(AndroHid.java:77)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
android.app.Activity.performCreate(Activity.java:5104)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2354)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
android.app.ActivityThread.access$600(ActivityThread.java:150)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
android.os.Handler.dispatchMessage(Handler.java:99)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
android.os.Looper.loop(Looper.java:137)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
android.app.ActivityThread.main(ActivityThread.java:5193)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
java.lang.reflect.Method.invokeNative(Native Method)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
java.lang.reflect.Method.invoke(Method.java:511)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)

�[0m�[38;5;196mE/AndroidRuntime(16253):     at 
dalvik.system.NativeStart.main(Native Method) 

Original comment by [email protected] on 28 Mar 2013 at 9:00

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant