Android中多臺設備連接時的adb命令

C:\Users\Administrator>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
fc2f9754        device
d51ad9ff        device
 //多臺設備,是無法直接獲取序列號的
C:\Users\Administrator>adb get-serialno
unknown
 //多臺設備,無法進入
C:\Users\Administrator>adb shell
error: more than one device and emulator

C:\Users\Administrator>adb devices
List of devices attached
fc2f9754        device
d51ad9ff        device
 //此時我們就可以指定序列號,進入
C:\Users\Administrator>adb -s d51ad9ff shell
shell@cancro:/ $


adb [-d|-e|-s ] 命令

當有一個模擬器和一個真實的手機連接的時候:

//進入模擬器 C:\Users\Administrator>adb -e shell

//進入手機 C:\Users\Administrator>adb -d shell

發佈了34 篇原創文章 · 獲贊 3 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章