reference:
- https://www.jianshu.com/p/cef44295a7fe
adb root
adb remount
adb pull /system/etc/hosts
Then edit the hosts locally, remember: leave a line in the last line.
Finally, push the hosts file back
adb push hosts /system/etc/hosts
Verify that the hosts file has been modified:
cat /system/etc/hosts
Verify that the hosts have taken effect.