It seems my post from yesterday never showed up so I'm going to give it another shot. I'm also having this problem, I can find no way to edit the hosts file on an android virtual device. According to the docs adb remount is supposed to put /system into read-write mode -- which it may be doing -- but I'm still getting an Out of Space error.
It looks like I'm going to have to setup a DNS server just so I can test a website unless someone has a better suggestion that I may be overlooking. On Mar 23, 1:27 pm, Antonin Hildebrand <[email protected]> wrote: > I have exactly the same problem: > > ~/android-sdk/platforms/android-7 ➔ adb remount > remount succeeded > ~/android-sdk/platforms/android-7 ➔ adb push /etc/hosts /system/etc/ > hosts > failed to copy '/etc/hosts' to '/system/etc/hosts': No space left on > device > > The reason why I need to use my local hosts file is simply because I'm > running local server which needs to be accessed by android emulator. > Not that uncommon setup I guess. I wonder why it is not working out of > the box. > > Any help greatly appreciated. Thanks > Antonin > > On Mar 23, 8:47 am, Marek Pola <[email protected]> wrote: > > > Hello, > > > Probably the reason why it's not working is that the /system partition > > is mounted read-only for obvious (security) reasons. You need to > > remount it. Search on this mail list for the exact commands. > > > But why do you need to edit the hosts file? Can't you use DNS to find > > the IP address of your host? > > > Regards > > Marek > > > On Mar 22, 5:04 am, Tushneem <[email protected]> wrote: > > > > I am trying to edit the hosts file to access rest services in my local > > > network. Using adb pull I am able to get the hosts file for the > > > emulator and edit it. However I get the error "Nospacelefton > > >device" when I do an adb push. > > > > Does anyone know how to resolve this issue? Can we increase thespace > > > for /system? If so how? Are there any other easier ways to access > > > local area network (without creating a DNS server). > > > > thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

