self-confidence,the source of all the power

导航

android device action and adb command

1.恢复出厂设置

"adb -s " + self.__serial + " shell am  broadcast -a android.intent.action.MASTER_CLEAR"

2.获取device cpu

'adb -s ' + self.__serial + ' shell getprop ro.product.device'

3.type(eng/user)

'adb -s ' + self.__serial + ' shell getprop ro.build.type'

4.判断device是否启动成功

C:\Documents and Settings>adb shell vdc volume list (不成功)
110 0 sdcard /storage/sdcard0 1
110 0 sdcard2 /storage/sdcard1 0
200 0 Volumes listed.

C:\Documents and Settings>adb shell vdc volume list (成功)
110 0 sdcard /storage/sdcard0 4
110 0 sdcard2 /storage/sdcard1 0
200 0 Volumes listed.

 

posted on 2013-02-04 14:46  漩涡鸣人  阅读(494)  评论(0编辑  收藏  举报