Android Console Commands 指令
adb shell 指令有很多,可參考 官網的說明 。底下列出筆者常用的指令。 ======================================================================= 底下指令可查到 Android的軟體版本 cat /system/build.prop | busybox grep "ro.build.description" ======================================================================= 開啟網頁瀏覽器 ./adb shell am start -a android.intent.action.VIEW -d http://tw.yahoo.com/ ./adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main ======================================================================= 無線網路相關指令 // Scan Wireless AP iwlist wlan0 scan // 連線至指定名稱(essid)的AP iwconfig wlan0 essid "指定名稱" 例如: iwconfig wlan0 essid "holan" 會連線到 ssid 為 holan 的AP。 // 查詢 wifi 設定 iwconfig wlan0 // 設定固定IP busybox ifconfig wlan0 192.168.1.123 netmask 255.255.255.0 // 設定動態IP(dhcp) netcfg wlan0 dhcp // 關閉 Wifi busybox ifconfig wlan0 down // 開啟 Wifi busybox ifconfig wlan0 up // 關閉 Ethernet busybox ifconfig eth0 down // 設定 WEP 的 key (ex. 1234...