I just got help from this page and it works.... anybody who faces problem can use -partition-size 128 as the option while starting the emulator from command prompt
http://www.cuteandroid.com/tips-for-android-developer-failed-to-copy-file-to-system On Mar 23, 7: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

