yashsingh1/xdaforums huggingface dataset:
[G1 Apps and Games] delta_foxtrot2:
TCP dump sniffs packets, in this case I limited it to UDP port 53 so it could sniff DNS packets, then after you run an app that has ads/tracking etc the hostnames it requested should be logged. Then you can go back into AdFree and bring up the TCP dump screen from the menu on the main screen, this will show you the host names logged and you can click on any of them and it will load open a browser window with the host name so you can add it to your personal white/black list and/or report it to me so it can be added to the global host list.
[G1 Apps and Games] delta_foxtrot2:
Just posted 0.8.20 and set it to Android 1.6, dunno how many people still use that OS, but now that Android Market supports multiple APKs I thought I might as well add an APK for it.

0.8.21 is the same code as 0.8.20 but is for devices running 2.1+ and added support for < 160dpi, although some phones that should be using mdpi files seems to prefer ldpi...
[G1 Apps and Games] d3l4croix:
I got 1prob, use galaxy sl i9003 with gingerbread 2.3.4, if update adfree, my phone will go on restart loop. solution is removing addfree quickly before it start. then reinstall it back.
[G1 Apps and Games] delta_foxtrot2:
Do you mean you have to do this on every restart, or just once?
[G1 Apps and Games] delta_foxtrot2:
I signed up to this

https://www.transifex.net/projects/p/AdFree/
[G1 Apps and Games] delta_foxtrot2:
I signed up to this:

https://www.transifex.net/projects/p/AdFree/

And uploaded all existing human translations...
[G1 Apps and Games] McGiverGim:
Ok, asked to join the spanish team ;-)
[G1 Apps and Games] delta_foxtrot2:
Thanks for taking the time and effort, I'm sure many native Spanish speakers will appreciate it.
[G1 Apps and Games] McGiverGim:
Done! I was not sure about some of them, but it's a lot better translation than the auto ;-)

Regards!
[G1 Apps and Games] d3l4croix:
after update, phone can boot fine until adfree load. if adfree load then it will restart. so it become restart loop.

its 1 time, after phone restart, i quickly unistall adfree load so the restart loop stop.

after that i reinstall adfree and never update it. it work fine as long as im not update it
[G1 Apps and Games] delta_foxtrot2:
Which Rom are you using (Name + version), or is it possible to get a logcat dump to show any errors being hit?
[G1 Apps and Games] Jorgensen:
Hi DF2

Thanks for your reply. I checked the host file and it looks correct. Then I checked the /data/data/ folder, but that doesn't contain any host file - nor folder. I guess this is the problem. But I must admit I don't know how to create a symlink. Instead, copying the /etc/hostfile manually to the /data/data folder, would that help? I know I would lose the automatic updates but it is better than nothing.

Thanks,

Jorgensen
[G1 Apps and Games] d3l4croix:
I9003XXKPH, samsung firmware
[G1 Apps and Games] Cookie Ninja:
Tried ad free Android and Ad Away. AdFree deleted the older, larger hostile and replaces it with a smaller version. The results are very unsatisfactory and ads reappear. The only good part of the programme I is that it shows the TCP host names, which one can check and add manually. Doesn't append but replaces ad server data. Big Fail.
[G1 Apps and Games] chriscx:
hey App2sd free version, blocks if we have adfree and then we cannot open it

I suppose it's the new strategy of some apps in future

I hope you will find a solution, I froze adfree with titanium backup, but app2sd was still detecting it.

so I went back to old app2sd
[G1 Apps and Games] Uncensored:
Since you're already rooted. Try super manager it offers app2sd functions as well without ads. That's what I did.
[G1 Apps and Games] chriscx:
thanks a lot;)
[G1 Apps and Games] delta_foxtrot2:
Actually that's by design, if too many hosts get added we get too many complaints about sites that shouldn't be on the list, which is why you can now select additional lists to block via our website if you really want.

You can also whitelist hosts so they don't get blocked via our website as well.
[G1 Apps and Games] delta_foxtrot2:
Someone else is using this rom, check a couple of pages back, but I think things just started to work for him.
[G1 Apps and Games] delta_foxtrot2:
I'm trying to consolidate updates, but as soon as I push out an update people keep giving me more translations, not that I'm complaining and I'm very grateful for them, I'm just surprised at the vigor of it all :)

I'm about to push out a new update that includes Dutch and Italian.
[G1 Apps and Games] BeenAndroidized:
You are doing a great works. Keep it up, :D
[G1 Apps and Games] Jorgensen:
I just noticed that there is a check box that creates the symlink...:rolleyes: I checked that box updated the host lists. And now when I look in the host files /etc/hosts, /system/etc/hosts and /data/data/hosts all of them are updated via Adfree. Rebooted the phone, and then I tried pinging one of the entries in the host file, and the resolving ip was 127.0.0.1 (local host) so I thought it worked. But when I browse and compare with my old HTC Magic, none of the ads are removed on the SE Arc. Any clues on what is going on?
[G1 Apps and Games] delta_foxtrot2:
Please try the following:

reboot phone to flush any dns caching

enable TCPdump, checkbox on main screen of adfree

then browse sites/run apps with ads

then go back into adfree and on the main screen show the menu and click on the tcpdump screen option

see if any DNS requested hostnames are missing from the hosts file
[G1 Apps and Games] Cookie Ninja:
Haha. They all are. Inmobi adserver addresses are not included in latest AdFree webupdate.
[G1 Apps and Games] delta_foxtrot2:
By default AdFree has a known "safe" list it sends, to get additional lists you need to enable them on your account via the AdFree website.
[G1 Apps and Games] Jorgensen:
Ok, did what you suggested. And I get some Google, Facebook, dropbox and tapatalk domains. But also 3 I don't know what is:

Xtra1.gpsonextra.net

Profile.AK.fbcdn.net

Banpush.bet365affiliates.com

None of them are listed in the host file.
[G1 Apps and Games] delta_foxtrot2:
That sounds like a missing root cert to validate the certificate from www.bigtincan.com

What Android OS are you running?
[G1 Apps and Games] Smokuevo:
JF v1.42 RC33
[G1 Apps and Games] delta_foxtrot2:
Actually, can you browse to https://www.bigtincan.com on your phone and see if it throws up some SSL certificate error.
[G1 Apps and Games] delta_foxtrot2:
This doesn't matter, I've uploaded v0.1.1 which ignores certificate errors like this (I hope).
[G1 Apps and Games] Smokuevo:
market problems with downloading for now but will report as soon as it downloads.
[G1 Apps and Games] Smokuevo:
it downloaded fine now. adds in backgrouds app is gone. there is adds in express news they're different.
[G1 Apps and Games] delta_foxtrot2:
If you can tell me hostnames or what website/app I can try and find out hostnames to add to the list.
[G1 Apps and Games] Smokuevo:
app called express news from handango
[G1 Apps and Games] Dark X Dragon:
Is this where I should post in relation to the AdFree Android app then? o_O

I just want to say I'm getting annoyed at the comments in the market about if it works in browser vs apps. (Obviously not your fault at all)

Though, I IMPLORE you to add a section in the description saying it works on Browser AND Apps and maybe add that it works by stopping system level requests to the domain or something a long those lines.

Pretty please!

I'm not sure why I care that much but I guess I do...
[G1 Apps and Games] Chahk:
Awesome app; can't believe nobody thought of this sooner! :)
[G1 Apps and Games] Smokuevo:
ill change my comment to say that later :P) thanks for the all the help :)
[G1 Apps and Games] delta_foxtrot2:
The problem with the description is you can only use 325 characters, so it's a real challenge describing multiple aspects succinctly.
[G1 Apps and Games] jashsu:
Let's give it a try:

281 letters.
[G1 Apps and Games] prash:
Before the last update as someone else mentioned above I was getting the 'unable to download' errors. Now With the newest version I tried again and I get 'Failed to replace host file" error

I even tried to revert first (since I had added hosts manually as earlier in the thread through pc) then apply the updated host files. BUt the same error as above shows up.

I'm on RC33 1.42 JF build.
[G1 Apps and Games] delta_foxtrot2:
I re-worded it a little, because it will filter more than just ad images, it will do text/javascript based ones also if the hostname of the ad server is known.

And the full link is in the URL section at the section at the bottom which can be clicked on/opened.
[G1 Apps and Games] Dark X Dragon:
Thanks for the description thing, still unsure why I cared so much. Nicely worded. =)

I had a look at the hosts file and I notice the "127.0.0.1 localhost" entry was halfway down the page. I might be wrong but I was told that it should be the first entry in the list.

Just throwing that out there...
[G1 Apps and Games] delta_foxtrot2:
SQL is spitting them out in alphabetical order for some reason, although I haven't noticed any issues with it as is.

There is a lot of myths about that were right once but no longer hold true, someone would have to do testing to see if it makes a diff I guess.
[G1 Apps and Games] delta_foxtrot2:
Even when I use Market Enabler I can't see that app, I'm running a variation of the ADP firmware so I'm guessing that it is probably content protected, so I wasn't able to find out any URLs.
[G1 Apps and Games] delta_foxtrot2:
I just worked out you don't need to packet sniff even, as long as you are getting debugging information on the USB port and run 'adb logcat' you get things like this:

D/InetAddress( 2551): ads.aapl.shazamid.com: 194.126.240.16 (family 2, proto 6)

which after I update the list I get:

D/InetAddress( 2590): ads.aapl.shazamid.com: 127.0.0.1 (family 2, proto 6)

:D
[G1 Apps and Games] Karolis:
I've seen feedburner mentioned in this thread once, butt I don't think it got resolved. The list includes feeds.feedburner.com which in effect blocks you from adding feeds to certain apps such as DoggSnoggler.

Is it possible that you removed it from the future updates? I have removed it manually now, but will it re-add itself?
[G1 Apps and Games] delta_foxtrot2:
I added those to the main host list...

Seems to be profile photos, not ads...
[G1 Apps and Games] delta_foxtrot2:
0.8.30+ Added French, German translations
[G1 Apps and Games] thebrainkafka:
Appbrain is not add free. Please add hosts
[G1 Apps and Games] tcibo:
German translations have same bugs i can help you with the translations

Download & Install Hosts

Download & Hosts installieren

Revert

Wiederherstellen

Cannot locate the "cat" util on your system, please email me to tell me where to find the cat util on your ROM.

Das 'cat' Werkzeug konnte auf Ihrem System nicht gefunden werden, bitte Mailen Sie uns, wo sich das cat Werkzeug befindet.

No need to update, your system already has the latest version.

Kein Update nötig, Sie haben bereits die neuste Version.

New hostnames have been added to the list, update now to block them.

Neue Hostnamen wurden zur Liste hinzugefügt, machen sie ein Update um die Liste zu aktualisieren.

Reverting...

Wiederherstellen...

Please wait while your hosts file is reverted.

Bitte warten, während die Hostdatei wiederhergestellt wird.

Your Android device should now be AdFree, however you might need to reboot to clear your DNS cache.

Ihr Android-Gerät sollte nun werbefrei sein. Möglicherweise müssen Sie neu starten, damit der DNS Speicher gelöscht wird.

Automatically Apply Updates

Automatisches Update ausführen

Local Webserver

Loka. Webserver

Proudly brought to you by BigTinCan.com. If you like this app, please show your support by donating to help us cover bandwidth costs and enable us to purchase and support new devices.

Präsensiert von BigTinCan.com. Wenn Ihnen diese App gefällt, unterstützen Sie uns bitte mit einer Spende um die Bandbreitenkosten zu decken und neue Geräte zu unterstützen.
[G1 Apps and Games] delta_foxtrot2:
I've reported the &amp; bug to Transifex, as for updates, you can view/edit all the strings online now:

https://www.transifex.net/projects/p/AdFree/resource/stringsxml/l/de/view/
[G1 Apps and Games] bsoplinger:
I'm completely stumped. If I manually edit the hosts file and remove the line that reads:

127.0.0.1 promo.newegg.com

I'm able to read/view the newegg ads that I want to view. So I decided to register on the adfree site. I went to make a whitelist item and I can't do it. I tried to enter "promo.newegg.com" without the quotes and it tells me it's invalid for either a white or black list. So what am I doing wrong?

TIA Brian
[G1 Apps and Games] delta_foxtrot2:
I just did a dig on that host name and I don't get anything useful back...

# dig promo.newegg.com any

;; QUESTION SECTION:

;promo.newegg.com.	IN	ANY

;; AUTHORITY SECTION:

newegg.com.	246	IN	SOA	pdns1.ultradns.net. hostmaster.newegg.com. 2011101900 900 600 86400 300
[G1 Apps and Games] bsoplinger:
So basically my memory is faulty and I was using the correct form? If that's the case I'll just wait for the next update and when it puts back whatever.newegg.com into hosts I just put that in the box and select whitelist?

Added: The site was actually promotions.newegg.com and once I used the right site it worked correctly.
[G1 Apps and Games] delta_foxtrot2:
I'm not saying you're wrong, I'm just saying I can't resolve it, which means they've taken that entry out of their DNS zone, so regardless if it's in the white list or not, it wouldn't resolve anyway.
[G1 Apps and Games] ChrisCowles:
Can't get AdFree working on Photon

My /system/etc/hosts is different from /etc/hosts. Judging from the content of each, /system/etc is the AdFree version, and /etc is the one used by the system.

How do I get the Adfree version into /etc? Do I have to go the manual route of using the command line?

Thanks in advance.
[G1 Apps and Games] delta_foxtrot2:
You could create a symlink, this would only need to be done once.

ln -sf /system/etc/hosts /etc/hosts
[G1 Apps and Games] mr_absinthe:
Just to let you know, I'm hosting quite extensive hosts file on my own server, if you're interested, see here for more: http://xdaforums.com/showthread.php?t=1300529&page=3
[G1 Apps and Games] ChrisCowles:
Hosts file not in correct folder

What happens to the existing hosts file, in that case?
[G1 Apps and Games] bsoplinger:
A symlink makes the first file in the command appear in the second location. But any editing you make to that second file actually happens to the first file. Its somewhat like the Windows shortcut.
[G1 Apps and Games] TimRiker:
The Nook Color CM7 from SD builds have system here:

/dev/block/mmcblk1p2 on /system type ext4 (ro,relatime,barrier=1,data=ordered)

this does not seem to work. Why don't you just dump the mount points and remount whatever is mounted on /system? Something like:

system=$(grep ' /system ' /proc/mounts|cut -d' ' -f1)

or look to see if busybox is there, and if so use it's smarter remount syntax:

busybox mount -o remount,ro /system

busybox mount -o remount,rw /system

Also, if use /data/data/hosts is checked, can we skip the su check? The user could create the file, chown it to the app user and use that. alternately, perhaps it would be a better idea to include a hosts file in the app and make the symlink point to /data/data/com.bigtincan.android.adfree/hosts then just update there?
[G1 Apps and Games] ChrisCowles:
Okay, but there's already a different hosts file, the original, in that location. If I create a symlink pointing to a location containing a file of the same name, what happens to that file? That seems like a conflict unless Android somehow gives one precedence. If so, which?
[G1 Apps and Games] delta_foxtrot2:
I've been meaning to add busybox code, but for the most part things work as is.

I wouldn't like to do /data/data/hosts writable by any app for security reasons, and I'd hope the system would lock things down to prevent that sort of thing, especially with all the reports of malware turning up on android.

As for pointing to /data/data/com.bigtincan.android.adfree/hosts that's a possibility, although I wouldn't be surprised if OS code prevented this on at least one rom for being insecure.
[G1 Apps and Games] delta_foxtrot2:
The answer is "it depends" on how the OS on the ROM has been coded, by default *nix based systems like linux are hard coded to be /etc/hosts, however there are many many chefs involved in cooking ROMs and /system/etc/hosts might be the OS default, and yes by symlinking one file will have to be deleted.
[G1 Apps and Games] spacemanr:
Hi, can someone help me with my situation? I'm runing IC 1.1.4 stable rom and i used the adfree for long time but in the last few days after i get the massage that there are new hosts for download and i start to download, my phone stuck after few sec at download screen and that's it. After that only option i got is to pull the battery out.
[G1 Apps and Games] wraithdu:
/etc *should* be a junction to /system/etc. If not, then there's some ROM goofyness going on.
[G1 Apps and Games] spacemanr:
Yes it is.
[G1 Apps and Games] delta_foxtrot2:
That ROM seems to have some stability problems...

http://insertcoin-roms.org/board/viewtopic.php?f=10&t=13
[G1 Apps and Games] SlimHouse:
Please remove from the hosts: 127.0.0.1 lenta.ru

I stopped working news widget!

or I'll complain about you to the Geneva court!
[G1 Apps and Games] XlAfbk:
lol? ......
[G1 Apps and Games] Taomyn:
Seconded

---
[G1 Apps and Games] delta_foxtrot2:
I should print that out and hang it on the wall, makes me smile every time I've read it :)
[G1 Apps and Games] delta_foxtrot2:
If you want hostnames blocked all you have to do is reboot to flush your dns cache, make sure tcpdump is enabled on the main screen of AdFree then open the app/website then get back into AdFree main screen bring up the menu and select TCP dump option and it'll show you the hostnames.
[G1 Apps and Games] vtknightmare:
Love it but...

Hey Guys!

Please allow me to start with an entry full of gratitude. The Adfree soft. is/was has been great ever since I discovered it (*despite the little snafu about changelog, which was corrected recently :) *)

As to why I'm bugging the dev...

Please see attached screenshot, taken from my Droid 2 GLOBAL VZW phone running CM7. 1

One day, that is what happened... I can now never get past the loading screen. Tried AdAway and that one wont even open, let alone work.

Help?
[G1 Apps and Games] delta_foxtrot2:
Are you able to run ADB on your computer and do "adb logcat"? to see what error message is being dumped to the system log
[G1 Apps and Games] kaibird:
this app is not adfree

https://market.android.com/details?id=com.appclub.EcoChange

can you add this to your host list

thanks
[G1 Apps and Games] Scudderb:
Yes, that is GOOD...frame it!! I've kept stuff like that too!:D
[G1 Apps and Games] Scudderb:
How do you clear out the TCPDump file?? I got a bunch of stuff in there...some of which is "legit" that I want to keep (e.g., some facebook things that aren't even ads). Just want to start with a fresh dump (wow, now THAT sounded great!! :eek::eek:) and see if there are any domains I want to blacklist.

Thanks!!
[G1 Apps and Games] Cookie Ninja:
I do the "stupid" method learnt from Microsoft. Uninstall, reboot and clean install. Hope there is a better method, though.
[G1 Apps and Games] warrez:
Can someone tell... what program/editor do you use to edit hosts file? I installed adfree from market and it worked great but it didnt block every ad so i wanted to add few address to hosts file.. I used "root explorer" to pull/copy to computer and edited using wordpad... pushed it back to my sgs2 and changed owner to root and group to 10110 - app_110 with rw-r-r permission in system/etc

But it did not work while the original list from adfree works perfectly.. my new edited list doesnt even block single ad.

Any idea why?
[G1 Apps and Games] Pons:
On Windows, try NotePad++. WordPad adds extra formatting.

Or jump into Linux and use gedit, like a Bauss.
[G1 Apps and Games] warrez:
tried notepad++ just now and no doesnt help anything... i dont really understand whats wrong with it lol.... i only copied the original hosts that is being installed by adfree added exactly 5 lines 1 blank and 4 addresses and saved, changed into non-filetype and copied it back to sgs2 moved and overwrited it into /system/etc, changed owners,groups,permission with root explorer and it doesnt block any ad.. even the ad that is being blocked by original list isnt blocked....

help please? someone? anyone?

added hosts file in attachment in case someone want to look... i dont think there is anything wrong with it tho...
[G1 Apps and Games] Murmel2k:
Is it normal to get a error 403-Message instead of the ad?

If not, how can I fix this?
[G1 Apps and Games] delta_foxtrot2:
I'll add an option and push out a new version soon that will allow you to wipe the file.
[G1 Apps and Games] delta_foxtrot2:
You don't need to reboot, uninstalling should clean up any files that app produces.
[G1 Apps and Games] delta_foxtrot2:
If you run adfree any changes you make will be lost next time it updates, instead we made a website so you can add additional hostnames, or stop a hostname from being added to the list.
[G1 Apps and Games] delta_foxtrot2:
A 403 error means that the URL requested was denied by the web server, this can be normal it depends on the URL and the web server config.
[G1 Apps and Games] delta_foxtrot2:
It's been bugging me for a bit about waiting for the app to check for updates just so I can get into the TCPdump screen, so I added a prompt at start up to boot normally or go straight to tcpdump screen.

0.8.34+ Added Persian/Farsi

0.8.36+ Added option to wipe TCPdump log to TCPdump screen

0.8.38+ Added prompt to boot normally, or immediately switch to the TCPdump screen

And I just realised a mistake I made, after wiping the log file it doesn't bother to restart tcpdump, a fix is almost done for this.
[G1 Apps and Games] delta_foxtrot2:
0.8.40+ restart TCPdump if needed after wiping the log
[G1 Apps and Games] Cookie Ninja:
Thanks for the update to wipe the TCP dump. Been browsing the host file and see IP v6 addresses mapping in first lines...

Care to explain why?
[G1 Apps and Games] delta_foxtrot2:
For the same reason you add localhost, IPv6 is coming and I'm just preempting problems by not having it.
[G1 Apps and Games] vtknightmare:
/Web Console( 2865): Uncaught ReferenceError: Begin is not defined at http://www.xda-developers.com/?s=adfree&x=45&y=10:4

E/Web Console( 2865): Uncaught ReferenceError: XD_692_3 is not defined at http://www.xda-developers.com/?s=adfree&x=45&y=10:1

E/Web Console( 2865): Uncaught ReferenceError: XD_2707_2 is not defined at http://www.xda-developers.com/?s=adfree&x=45&y=10:1

E/Web Console( 2865): Uncaught TypeError: Cannot read property 'vendor' of undefined at http://www.xda-developers.com/?s=adfree&x=45&y=11
[G1 Apps and Games] sushifor5:
Problem with ad-free and craigslist...

I've been using the ad-free app since rooting my phone two months ago and I love it...for the most part. I find that the Craigslist Notification app is not always ad-free. It will be when I look at it, and then I go into it again, maybe even two minutes later, and there are ads. I cannot figure out what to do. I have downloaded host file updates. I have not changed any configurations in the ad-free app b/c I don't understand what to change and what it would do...there are no instructions in the app...I am a complete techno newbie. If you could help me get rid of the ads permanently, or instruct me in how to configure the ad-free app, i'd greatly appreciate it. TIA!!
[G1 Apps and Games] delta_foxtrot2:
It's unlikely you'd ever be 100% adfree, it's just too much of a cat and mouse game and there is numerous ways to beat it.

If you enable TCPdump then run the apps and then open the TCPdump log screen it will show host names requested by the apps/browser on the phone.

You can then click on the hostnames and it will attempt to add it to your personal block list on the adfree web interface.
[G1 Apps and Games] Murmel2k:
****, made a typing mistake. I ment a 404 error.