title: I'm not able to write to hosts file in android emulator
body: <p>I tried everything, </p>
  
  <pre><code>mount -o rw,remount,rw /system
  adb remount
  mount -o rw,remount,rw -t ext4 /dev/block/vda /system
  </code></pre>
  
  <p>In many cases I don't get errors when remounting and stuff, I don't get any message either, then I try something like this: </p>
  
  <pre><code>echo "10.0.2.2 videosup.com:5443" &gt;&gt; /system/etc/hosts
  </code></pre>
  
  <p>Or I do the typical push,</p>
  
  <pre><code>adb push ~/Desktop/hosts /system/etc/hosts
  </code></pre>
  
  <p>... and get the same error ALWAYS</p>
  
  <pre><code>sh: can't create /system/etc/hosts: Read-only file system
  </code></pre>
  
  <p>Tried with </p>
  
  <ul>
  <li>Nexus 5X API 22 Android 5.1 Lollipop</li>
  <li>Nexus 6 API 23 Android 6 Marshmallow</li>
  </ul>
  
  <p>I can't believe a super simple thing like trying to get to a locally served page is getting so difficult.</p>