« links for 2010-07-14 | Main | links for 2010-07-15 »


Linux 下用 adb 访问 Andorid 手机提示无权限

把 Hero 升级到中华电信版的 2.1 以后,用 adb 操作的时候就得到没有权限的提示了,而且也看不到设备名称。

chaifeng@chaifeng-desktop:~$ adb devices
List of devices attached
????????????    no permissions

google之后才发现adb 需要用root的权限运行才可以,为了省事写个简单的脚本:

#!/bin/bash

ADB_HOME=~/Applications/android-sdk-linux_86
pgrep -lf fork-server > /dev/null || ( echo "adb start-server"; sudo $ADB_HOME/tools/adb start-server )

$ADB_HOME/tools/adb $@

Enhanced by Zemanta

Comments

Whenever a person ideas the matter accessible, i can agree with your being. You actually intelligibly present knowledge with this make any difference so i have much to determine after reading this page.A lot for salutations and i will be restored to get a additionally messages.

Many thanks for sharing all these wonderful content. In addition, the perfect travel and medical insurance plan can often relieve those concerns that come with traveling abroad. Some sort of medical crisis can shortly become costly and that’s bound to quickly slam a financial impediment on the family’s finances. Having in place the perfect travel insurance offer prior to leaving is worth the time and effort.Davi Thanks a lot

Observed your short article incredibly appealing certainly. I truly experienced studying it so you make very some very good details. I am going to bookmark this site for the foreseeable future! Relly great report.

Post a comment