Genymotion: Edit /system/etc/hosts file

arnekolja picture arnekolja · Jun 13, 2014 · Viewed 11.4k times · Source

I am currently trying hard to modify my Genymotion Android emulator's hosts file.

The well-known way of remounting, pulling and pushing does not seem to work at all when using Genymotion, as the filesystem is always read-only and remounting is denied.

Earlier I recognized that Genymotion VMs are already shipped with superuser, so I opened the shell and su'd, but the problem is the same: the filesystem is read-only.

Does anyone have an idea how to change that file in a Genymotion VM?

Thanks

Arne

Answer

jam0ral3s picture jam0ral3s · Jul 3, 2014

Run Genymotion Android emulator and introduce this instructions in the console:

  1. adb root
  2. adb remount
  3. adb push /etc/hosts /system/etc

In the third step, specify your hosts file.

It works for me, I hope also works for you.