Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Changing /etc/hosts on android device

821 views
Skip to first unread message

marc

unread,
Feb 17, 2013, 5:56:33 AM2/17/13
to

I have a 4.0 Android, installed the SDK.

in adb shell, I become root, but cannot change the /etc/hosts file, that contains

root@android:/system/etc # cat hosts
127.0.0.1 localhost
74.125.93.113 android.clients.google.com





root@android:/system/etc # id
uid=0(root) gid=0(root)
root@android:/system/etc # ls
NOTICE.html.gz
apns-conf.xml
audio_effects.conf
bluetooth
dbus.conf
dhcpcd
dhcpcd.conf
event-log-tags
fallback_fonts.xml
hosts
init.goldfish.sh
install-recovery.sh
media_profiles.xml
media_profiles1.xml
mkshrc
permissions
ppp
ril
security
system_fonts.xml
usb_modeswitch.d
usb_modeswitch.sh
vold.fstab
wifi
root@android:/system/etc # ls
NOTICE.html.gz
apns-conf.xml
audio_effects.conf
bluetooth
dbus.conf
dhcpcd
dhcpcd.conf
event-log-tags
fallback_fonts.xml
hosts
init.goldfish.sh
install-recovery.sh
media_profiles.xml
media_profiles1.xml
mkshrc
permissions
ppp
ril
security
system_fonts.xml
usb_modeswitch.d
usb_modeswitch.sh
vold.fstab
wifi


--
--
What's on Shortwave guide: choose an hour, go!
http://shortwave.tk
700+ Radio Stations on SW http://swstations.tk
300+ languages on SW http://radiolanguages.tk

Arno Welzel

unread,
Feb 17, 2013, 7:01:35 AM2/17/13
to
marc, 2013-02-17 11:56:

>
> I have a 4.0 Android, installed the SDK.
>
> in adb shell, I become root, but cannot change the /etc/hosts file, that contains
>
> root@android:/system/etc # cat hosts
> 127.0.0.1 localhost
> 74.125.93.113 android.clients.google.com

Yep - because the filesystem is mounted read-only.

Maybe this will help:

<http://android-tricks.blogspot.de/2009/01/mount-filesystem-read-write.html>


--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de

marc

unread,
Feb 17, 2013, 2:26:09 PM2/17/13
to
Arno Welzel wrote:
> Yep - because the filesystem is mounted read-only.
>
> Maybe this will help:
>
> <http://android-tricks.blogspot.de/2009/01/mount-filesystem-read-write.html>
>
>

Remark: I tried to root the device with zroot, it does not work ...
Takara MID 72 / 7"/android4.0

Marc

marc

unread,
Feb 17, 2013, 3:10:16 PM2/17/13
to
marc wrote:

> Arno Welzel wrote:
>> Yep - because the filesystem is mounted read-only.
>>
>> Maybe this will help:
>>
>> <http://android-tricks.blogspot.de/2009/01/mount-filesystem-read-write.html>
>>
>>
>
> Remark: I tried to root the device with zroot, it does not work ...
> Takara MID 72 / 7"/android4.0
>
> Marc

It's /etc/hosts contains this:
shell@android:/system/etc # cat hosts
127.0.0.1 localhost
74.125.93.113 android.clients.google.com



I think that is the reason why Google Play does not work ...

I managed to change the contents ...

I already managed to log in on google play/market, but I have a dirty (version) mix of apps that I need to
clean: market app crashes ..
0 new messages