当前位置: 代码迷 >> Android >> android应用蓝牙鼠标笔记
  详细解决方案

android应用蓝牙鼠标笔记

热度:95   发布时间:2016-05-01 18:57:35.0
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

1 楼 ganky 2012-02-28  
  

试过,连接蓝牙鼠标可用!
我的是DHD,用的MIUI系统
  相关解决方案