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.

 

你可能感兴趣的:(android)