The night god simulator modifies the hosts file

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.

Guess you like

Origin blog.csdn.net/caiqiiqi/article/details/107912621