hosts file issue - Samsung Epic 4G Touch

I can't get my hosts file to work, not manually or by using AdFree.
It's in /system/etc/hosts with permissions set at 644 (rw-r-r).
Does the ACS stock EK02 kernel not supports the hosts file or something?

Related

[SOLVED] here is copy of an adfree hosts file, and where to put it

i tried to get adfree to work using the supersonic rooted ROM, and managed to allow it root access, but it barfed every other time i try to run it, and when it doesn't barf, it forces a system reboot.
after doing some searching, i found a solution. at least for those of us with rooted evos. not sure if you other folks could push it or not, since it writes to /system
okay, for anyone that also hates ads, i found this thread that has a hosts file.
i did have a copy of that file. but i updated in the reply below (thanks phiqtion for the original!)
the way i got it to work was DL the hosts file, unzipped it, put it in my sdk/tools folder, then
adb reboot recovery
*i ran maejrep/flipz/pauls recovery bat file*
adb shell
# mount /dev/block/mtdblock4 /system
# exit
adb push hosts /system/etc
adb reboot
and voila! no more ads
of course, if anyone has a functioning copy of adfree and a more up to date hosts file, please post!
*note - i am running toastcfm's rooted pc36img ROM now, because the supersonic kept throwing up. but, this probably will not work if you are not rooted.
updated hosts file HERE
thanks mediocrehippie!
Here's one for you:
When I use an ad free hosts file on my EVO and I connect to the internet on my PC via the EVO and Android WiFi tether, it blocks ads on my PC browser as well!
Sweet!
you can put it in your computer and will block them even if you dont connect through your evo.
here is a copy of the latest hosts file from 7/31
-deck
Hmm. I've been doing it with root explorer. Copy the hosts file to /system/etc and over write existing file, then reboot. I think some off the new progs are pushing ads to us in other ways that the hosts file doesn't come into play with.
Sent from my PC36100 using XDA App
this needs root, no?
herbthehammer said:
Hmm. I've been doing it with root explorer. Copy the hosts file to /system/etc and over write existing file, then reboot. I think some off the new progs are pushing ads to us in other ways that the hosts file doesn't come into play with.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
when i try to do this it says there is not enough available memory. any thoughts?
I just used the hosts file from:
someonewhocares.org/hosts/​
He updates is very regularly, I haven't seen an add get by yet.
So, its has been awhile since the last update, here's the latest updated hosts file I just work on today...
timothydonohue said:
updated hosts file HERE
thanks mediocrehippie!
Click to expand...
Click to collapse
Is there a link to an updated and maintained hosts file?
m4f1050 said:
Is there a link to an updated and maintained hosts file?
Click to expand...
Click to collapse
Bump for info?...
Anybody knoe of an updated hosts file
Does adfree work now or do I have it installed for nothing? I used root explorer to replace the hosts file.
pittnuma said:
Anybody knoe of an updated hosts file
Does adfree work now or do I have it installed for nothing? I used root explorer to replace the hosts file.
Click to expand...
Click to collapse
Ad-free just installs the hosts file, so if you're doing it manually then the app is pointless. Gimme a sec & I'll upload an updated hosts for you.
Edit: here you go. This is from the app AdAway, it's better than Adfree imo.
http://db.tt/DKzwDtXl
Many thanks, appreciated.
if i'd like to add adfree hosts sources, which urls i need to use?
thanks, great app!

hosts

I have a question, i need to edit my hosts file
I have find 2 hosts files, the first in /etc and the other one in /system/etc
What the difference ?
When i tried to edit with root explorer the file disappear in the folder after saving !
When i reboot the device the file is back again but not modified

HELP~HOW to add root permission in own .IMG file

I have made a .IMG file for my arc...and there is a problem ,I can't obtain root permission in it...How can I do ???
Help~~~~
FORGIVE MY POOR ENGLISH...
Did you add su and Superuser.apk to the system/xbin and system/app folders?
Also, set rmember to permissions correctly on those files.
su, you can extract from superuser.apk file using fx. 7zip.
Good luck
NielDK said:
Did you add su and Superuser.apk to the system/xbin and system/app folders?
Also, set rmember to permissions correctly on those files.
su, you can extract from superuser.apk file using fx. 7zip.
Good luck
Click to expand...
Click to collapse
Thank you so much for reply...
but,sorry, I have another question... That is, Why not put su in /bin instead of /xbin?
seabelhsu said:
Thank you so much for reply...
but,sorry, I have another question... That is, Why not put su in /bin instead of /xbin?
Click to expand...
Click to collapse
I dont think it matters. Some put it in bin, and add a symlink in xbin.
Put su in /system/bin and do
ln -s /system/bin/su /system/xbin/su
Remember correct permissions in /system/bin/su
Sent from my GT-I9000 using XDA Premium App

[Q] Edit hosts file

Hello,
After reading theads about this universal problem.
I'm still looking for a solution to edit hosts file.
I don't want to pay for root explorer app (sorry).
I've tried AdFree but it adds only "127.0.0.1 localhost"
is there a way to edit this f*** file. I've a hosts file to use but no possibilies to use it...
If someone can help me, (s)he will be very kind....
re Hello,
I've seen a thead a patch to make a link to a file on the sdcard (I don't know where on the forum exactly)
Is there someone to help me ?
I recently have been looking into changing my own hosts file. I use Astro with the root option enabled to copy the hosts file in /system/etc/ to my SD card. With Astro you can change file extensions. Rename your SD copy to hosts.txt and you can edit it with ThinkFree. As for copying that back over, I'm not sure if it's as direct. I would suggest using an Android terminal to do the edits because you can edit without having to use ADB (I found all this out through other threads). Make sure you're root(ed) as well (su command). Also you might have to reboot after copying over your new file. My PC has trouble with my hosts file.
Basically what I've seen is that there's a line in the file that the device can't "understand" (or find) perhaps. My PC file has a couple groups of sites that I copied from a website (after checking for loopback). All in all there was a box or something somewhere because the encoding wasn't the right one. (If you add the .txt extension on the device ThinkFree will ask you what encoding. I use the suggested but that's probably my issue on my PC.) My PC kept making a new, blank copy of my hosts and turning my custom one into an iCal file (?).
Hope this helps a little, even though you're only adding one line...
Sent from my SPH-M910 using Tapatalk
Hello
Thanks for the info.
I've manage to do a link to a hosts file located in the sdcard using adb when I'm in recovery mode.
Now When I use AdFree, the app can update without problem the file
Lol you could do adb shell
cd /etc/
cat hosts
and see what it outputs. If it's wrong just do echo urlhere 127.0.0.1 >> hosts
Indirect said:
Lol you could do adb shell
cd /etc/
cat hosts
and see what it outputs. If it's wrong just do echo urlhere 127.0.0.1 >> hosts
Click to expand...
Click to collapse
It's Ok,
when I do this, it outputs all the adress associated with 127.0.0.1
It displays the content of /sdcard/etc/hosts file.
Easy Host File
I have been able to change my hosts file with no paid apps,adb, or recovery. This will work with Astro or ES File Explorer.
Find and download the hosts file you wish to use; I use mvps. If you want to edit it or add entries do so now. To save it with no file extension on Windows under tools-->folder options enable "show file extensions for known types". Control click and select "rename"; rename "hosts.txt" as "hosts". Window will warn you about changing the extension but clear the warning. Copy this to the root of your sdcard.
On your rooted phone open your file manager (Astro or ES) and click menu. Allow root permission. You will see a legend that says your app has been granted superuser privileges. Navigate to sdcard and copy your desired hosts file. Go to root directory and paste the new file in /system/etc. You will get a warning that files will be overwritten/folders merged. Allow. Now you're done, easy money!
---------- Post added at 06:21 PM ---------- Previous post was at 06:15 PM ----------
To avoid a "blank" you have to show file types for known extensions. Editing is easy in Notepad++. This way you can add new annoyances at will. There's no place like 127.0.0.1!
I Understand the good side of your method.
Just a question. Can we do a link (ln -s....) via ADB with the original recovery ( the unrooted one) ?

Cannot Mount System/etc

Hi.
I was trying to edit my hosts file for adblocking and it seems that i cannot mount the folder for r/w.
I have tried to use adaway and it fails to apply the hosts file.
So i tried to do it manually using FX file explorer and i cannot mount system/etc.
Any help would be good

Categories

Resources