After: https://medium.com/@crysfel/updating-the-hosts-file-on-android-emulator-d61a533a76cf
Only Android images such as:
can be rooted!
adb remount
with error. Then you need to run AVD image with special option. Emulator is hidden in:~/Library/Android/sdk/emulator
adb push hosts
file during read-only rights:editing hosts:
127.0.0.1 localhost //default
put_ip_of_your_computer name_to_be_mapped
nice commands: