[android-developers] Re: adb push hosts file into /system/etc/ - No space left on device error

2010-05-19 Thread Javed
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 
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  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  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: adb push hosts file into /system/etc/ - No space left on device error

2010-05-19 Thread Javed
I get exactly the same error when I try to push my new compiled
library file to system/lib. Is there any solution to get rid of Out of
Memory error in adb push?

On Mar 23, 9:47 am, Marek Pola  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  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 "No space left on
> > device" when I do an adb push.
>
> > Does anyone know how to resolve this issue? Can we increase the space
> > 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: adb push hosts file into /system/etc/ - No space left on device error

2010-05-03 Thread CJ Bilkins
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 
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  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  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: adb push hosts file into /system/etc/ - No space left on device error

2010-05-03 Thread CJ Bilkins
"Probably the reason why it's not working is that the /system
partition
is mounted read-only for obvious (security) reasons."

This may be true, but according to the adb command [
http://android-dls.com/wiki/index.php?title=ADB ]  You should be able
to get around this by remounting.  Relevant:

"adb remount  - remounts the /system partition on the
device read-write"

However, I've done that and I'm still receiving:

failed to copy './hosts' to '/system/etc/hosts': Out of memory

I, like the rest, am simply trying to test a local website on
android.  Is editing the hosts file not the recommended approach for
testing dev stage websites on android?  I'm open to suggestions for a
better way

On Mar 23, 3:47 am, Marek Pola  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  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 "No space left on
> > device" when I do an adb push.
>
> > Does anyone know how to resolve this issue? Can we increase the space
> > 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: adb push hosts file into /system/etc/ - No space left on device error

2010-03-24 Thread Antonin Hildebrand
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  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  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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Re: adb push hosts file into /system/etc/ - No space left on device error

2010-03-23 Thread Marek Pola
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  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 "No space left on
> device" when I do an adb push.
>
> Does anyone know how to resolve this issue? Can we increase the space
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.