bootinge / androhid

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

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
Did you get the error message "adding sdp service failed"???

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

GoogleCodeExporter commented 9 years ago
yes i get this message  ...   the phone is rooted 

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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
CM uses bluez as bt stack so it just works ;)

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

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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