adb root
adb remount
adb pull /system/etc/hosts hosts
2.The hosts file should now be present in the folder where you excecuted the pull command. Edit the file with a text editor and add the sites you want to access. For example i added:
10.0.3.2 my-virtualhost.dev
LEAVE A EMPTY LINE AT THE END OF FILE
adb push hosts /system/etc/hosts
4.Browse to your site in the emulator browser. For example: my-virtualhost.dev You should see your homestead site now!
What to try if site is not reached from browser
- Check that you added an empty line after the last site in the hosts file.
- Close and reopen the emulator browser
- Restart the emulator