装好驱动程序,确保adb shell能正常访问你的手机
the putty to connect to this interface always, by setting the following things:
- Turn off line discipline in settings(Terminal--Local echo:Force off Local line-editing:Force off)
- Use RAW mode to connect to localhost:5037
- Enter "0012host:transport-usb" (use mouse right button)
PS.Don't put anykey with keyboard
- Enter "0006shell:" (use mouse right button)
使用ADB上传、下载文件和安装软件的方法
1、下载文件
语法:adb pull [文件名] /源路径/
例如:
adb pull blade_keypad.kl /system/usr/keylayout/
adb pull /sdcard/mp3/1.mp3
2、上传文件
语法:adb push [文件名] /目标路径/
例如:
adb push qwerty.kl /system/usr/keylayout/
adb push 1.mp3 /sdcard/mp3/
3、安装程序
语法:adb install -r [/路径/软件名.apk]
例如:adb install -r com.android.vending.apk
adb install -r com.android.vending.apk
安装:adb install -r com.android.vending.apk
解决 android 无法修改 hosts 文件 Unable to chmod /etc/hosts: Read-only file system
先输入命令:mount -o rw,remount yaffs2 /system
再输入: chmod 777 hosts
busybox vi /etc/hosts