Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in excuting (sdptool add --handle=0x5efe5 KEYB) #7

Open
GoogleCodeExporter opened this issue Sep 23, 2015 · 11 comments
Open

error in excuting (sdptool add --handle=0x5efe5 KEYB) #7

GoogleCodeExporter opened this issue Sep 23, 2015 · 11 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. run app 


i have problem when running this command 

private String REGISTER_SDP_SERVICE = "/system/bin/sdptool add --handle=0x5efe5 
KEYB";

in SdpInterface class 
the returned code of executing this command is 255 

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

What version of the product are you using? On what operating system?
last version 

Please provide any additional information below.
android 2.3.5 


Original issue reported on code.google.com by labib.fa...@gmail.com on 30 Mar 2012 at 1:43

@GoogleCodeExporter
Copy link
Author

Did you get the error message "adding sdp service failed"???

Original comment by ckjboy2...@gmail.com on 18 Apr 2012 at 8:06

@GoogleCodeExporter
Copy link
Author

yes i get this message  ...   the phone is rooted 

Original comment by labib.fa...@gmail.com on 18 Apr 2012 at 9:09

@GoogleCodeExporter
Copy link
Author

[deleted comment]

1 similar comment
@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

well, i guess this app works for some phones but some doesnt. 

This is a permission issue which I am trying to figure it out too.

If you look into it, you will find it caused by the l2cap socket.
(At least it happens here to me.)

Original comment by ckjboy2...@gmail.com on 19 Apr 2012 at 2:25

@GoogleCodeExporter
Copy link
Author

Only bluez bt stack is supported. So it will work on AOSP but any other ROM 
using proprietary bt stack won't work even if phone is rooted.

Original comment by fisiu82 on 20 Apr 2012 at 6:54

@GoogleCodeExporter
Copy link
Author

hi fisiu82, i am not sure if i understand you correctly. but my the other phone 
which is HTC hero runs CM7 executing this app without having any problem. just 
FYI.

Original comment by ckjboy2...@gmail.com on 23 Apr 2012 at 1:43

@GoogleCodeExporter
Copy link
Author

CM uses bluez as bt stack so it just works ;)

Original comment by fisiu82 on 24 Apr 2012 at 12:46

@GoogleCodeExporter
Copy link
Author

well, Android alse uses bluez as its bt stack. This problem might be caused by 
your su permission.

Original comment by ckjboy2...@gmail.com on 7 May 2012 at 6:00

@GoogleCodeExporter
Copy link
Author

i run the program from rooted mobile and su permission 

Original comment by labib.fa...@gmail.com on 7 May 2012 at 8:12

@GoogleCodeExporter
Copy link
Author

It depends on bt stack used by Your phone manufacturer. Some of them use bluez 
and androhid should work on those phones. And some of them use proprietaries bt 
stack - and those phones won't work with androihid.

Original comment by fisiu82 on 7 May 2012 at 2:19

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

No branches or pull requests

1 participant