[myTouch 3G Slide Themes and Apps] Daman3456:
Hi, bumping this thread with content because I can't get adfree or basic replacement of hosts file going no matter what I try. I'll try to make this post as competent as possible, as I know what I'm doing when working with androids in general-

So, I do an adb remount and that succeeds. I have to go in and delete the hosts file from /system/etc

#rm /system/etc/hosts
rm failed for /system/etc/hosts, Directory not empty

Though, hosts isn't a directory? rm -r returns the same response. rmdir says /system/etc/hosts is not a directory.

I can ls -l now and see that there is no visible hosts file in /system/etc.

ls -l /system/etc
drwxr-xr-x root root 2010-10-31 00:02 dhcpcd
-r--r----- bluetooth bluetooth 935 2008-08-01 08:00 dbus.conf
drwxr-xr-x root root 2010-10-31 00:02 wifi
-rw-r--r-- root root 414 2008-08-01 08:00 vold.conf
-rw-r--r-- root root 4846 2008-08-01 08:00 voicemail-conf.xml
drwxr-xr-x root root 2010-10-31 00:02 permissions
drwxr-xr-x root root 2010-10-31 00:02 clockwidget
-rw-r--r-- root root 63488 2008-08-01 08:00 timezones.db
-rw-r--r-- root root 2046 2008-08-01 08:00 bookmarks.xml
-rw-r--r-- root root 387 2008-08-01 08:00 spn-conf.xml
drwxr-xr-x root root 2010-10-31 00:02 iproute2
-rw-r--r-- root root 1476 2008-08-01 08:00 apns-conf.xml
-rw-r--r-- root root 3329 2008-08-01 08:00 ser2net.conf
-r-xr-x--- root shell 1176 2008-08-01 08:00 init.goldfish.sh
-rw-r--r-- root root 0 2008-08-01 08:00 agps_rm
-rw-r--r-- root root 2752788 2008-08-01 08:00 WPDB.zip
-rw-r--r-- root root 470 2008-08-01 08:00 gps.conf
-rw-r--r-- root root 797 2008-08-01 08:00 T-Mobile_USA_Root_CA.der
drwxr-xr-x root root 2010-10-31 00:02 security
-rw-r--r-- root root 1539 2008-08-01 08:00 T-Mobile_USA_Issuer_CA_02.der
-rw-r--r-- root root 473 2008-08-01 08:00 pvplayer.cfg
-rw-r--r-- root root 1540 2008-08-01 08:00 T-Mobile_USA_Issuer_CA_01.der
-rw-r--r-- root root 186 2008-08-01 08:00 pvasflocal.cfg
-rw-r--r-- root root 1514 2008-08-01 08:00 T-Mobile_USA_Intermediate_CA_01.der
-rw-r--r-- root root 56245 2008-08-01 08:00 NOTICE.html.gz
drwxr-xr-x root root 2010-10-31 00:02 ppp
-rw-r--r-- root root 3683 2008-08-01 08:00 AudioPreProcess.csv
-rw-r--r-- root root 71215 2008-08-01 08:00 AudioPara4_WB.csv
-rw-r--r-- root root 71861 2008-08-01 08:00 AudioPara4.csv
-rw-r--r-- root root 487 2008-08-01 08:00 AudioFilter.csv
drwxr-xr-x root root 2010-10-31 00:02 firmware
-rw-r--r-- root root 85 2008-08-01 08:00 01_qcomm_omx.cfg
-rw-r--r-- root root 8319 2008-08-01 08:00 event-log-tags

Though, I can ls -l /system/etc/hosts and it returns a file?

ls -l /system/etc/hosts
-rw-r--r-- root root 25 2008-08-01 08:00 hosts

Alright. So I should just try wgetting down on top of this file and see if it allows me to....

wget [removed due to new users get no outside links lol] -O hosts
Connecting to 209.68.48.119 (209.68.48.119:80)
hosts 100% |*******************************| 608k 00:00:00 ETA

Alright, so I do another ls -l on the hosts file..

ls -l /system/etc/hosts
-rw-r--r-- root root 623384 2010-11-25 00:52 hosts

Hey! That's about the right filesize....

Doesn't seem to do anything. A reboot restores the original.

adb push produces the same error as rm, adb pushing the file in recovery mode does nothing.

Any suggestions? I can't rm on anything in /system due to "directory not empty".

I can't apply the aufs deal posted above by renaming it update.zip, as recovery just says invalid update signature or something along those lines.