android使用蓝牙鼠标笔记

1、获得root权限,用的Unviersal Androod

2、下载hci相关工具

http://androidobex.googlecode.com/files/hciconfig
http://androidobex.googlecode.com/files/hcitool
http://androidobex.googlecode.com/files/hidd

拷贝到sdcard

 

3、将/system挂载为可读写rw

mount:列出当前的挂载点

/dev/block/mtdblock6 /system yaffs2 ro 0 0

 

我的设备的/system挂载点是/dev/block/mtdblock6

#mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system(mount -o options -t 文件系统 设备 路径)

4、拷贝hci工具

 #cp hidd /system/xbin/.

 #cp hciconfig /system/xbin/.

 #cp hcitool /system/xbin/.

 

5、关键的连接鼠标方法

#hcitool scan
Scanning ...
        DC:2C:26:11:73:49       Lenovo Bluetooth Mouse

# hidd --connect DC:2C:26:11:73:49

# hcitool con
Connections:
< ACL DC:2C:26:11:73:49 handle 1 state 1 lm MASTER

 

 

搞定!!我用的是里程碑1

你可能感兴趣的:(android,鼠标,蓝牙)