Mi one修改hosts

装好驱动程序,确保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


                                                                                                          

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值