天天看點

ubuntu指令

adb push hosts etc/hosts 将hosts檔案複制到手機上(覆寫etc裡的hosts)

錯誤:failed to copy hosts to etc/hosts: Read-only file system

解決方法:adb remount , adb shell , chmod 777 system然後重試。

修改手機hosts檔案:

adb shell

cat /etc/hosts

exit

adb pull /etc/hosts 将手機内的hosts檔案pull出來

adb push hosts /etc/hosts 将修改後的hosts檔案push進手機

打開world: gedit &

4.  修改環境變量sudo gedit ~/.bashrc 修改完後source .bashrc