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