Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Genymotion: Edit /system/etc/hosts file

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

like image 563
arnekolja Avatar asked Jun 13 '14 13:06

arnekolja


Video Answer


1 Answers

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.

like image 124
jam0ral3s Avatar answered Oct 18 '22 22:10

jam0ral3s