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

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

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

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

GoogleCodeExporter opened this issue May 2, 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 [email protected] on 30 Mar 2012 at 1:43

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 18 Apr 2012 at 8:06

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] 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 [email protected] 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 [email protected] 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 [email protected] on 7 May 2012 at 6:00

@GoogleCodeExporter
Copy link
Author

i run the program from rooted mobile and su permission 

Original comment by [email protected] 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant