How to filter ads on your G1

Search This thread

5[Strogino]

Senior Member
Sep 23, 2009
1,567
405
Moscow
When AdFree got error "java.io.EOFException"

use terminal and run following:
$cat /data/data/com.bigtincan.android.adfree/shared_prefs/AdFreePrefs.xml > /data/data/com.bigtincan.android.adfree/shared_prefs/AdFreePrefs.xml.bak

Or use small script (attached), that doing same:
- unpack and sopy to sd-card (if you copying to other folder, please specify folder in command below
- run via terminal
$sh /sdcard/adfree_backup_fix.sh
 

Attachments

  • adfree_backup_fix.zip
    213 bytes · Views: 323

ID#

Senior Member
Jul 13, 2009
131
7
HTC Desire HD
OnePlus One
java.io.EOFExeption

Hey guys
I don`t know why you are all using so elaborated solutions. For me the easy way works best:
I just hit "back"-button once and then the "download"-button.
This worked for me many times!

But I have an other problem:
The ads are replaced by the android browser error message. This magnificates the site ernormously :eek:
How can I set e.g. a picture which is located on my phone instead this error message for replacing the ads?
 

traspler

Senior Member
Jun 25, 2009
125
2
Zuerich
When I select "Use BTC IP", the ads will just stay blank (sometimes even a collapsed white square) but when I select the localhost option, the ads get replaced with a white on blue question mark. So just select a different option.

Woah... the back button actually worked... Thank you :)
 

el_smurfo

Senior Member
Oct 21, 2009
3,955
1,316
Clear browser cache and reboot got rid of the errors for me.

Hey guys
I don`t know why you are all using so elaborated solutions. For me the easy way works best:
I just hit "back"-button once and then the "download"-button.
This worked for me many times!

But I have an other problem:
The ads are replaced by the android browser error message. This magnificates the site ernormously :eek:
How can I set e.g. a picture which is located on my phone instead this error message for replacing the ads?
 

hybridb

Member
Aug 22, 2009
48
0
I have not been able to even open the app. Title bar comes up fine, it asks for su permission, I allow it. But then it just hangs at a black screen, and force closes every time. There is a wait option which only cycles back to black screen and f/cs again, indefinitely. No ads are being blocked.

I had the same problem running CM. Uninstalled, rebooted and installed again. and now it works fine!
 

Proxin

Senior Member
Feb 6, 2009
468
14
Pallet Town
I had the same problem running CM. Uninstalled, rebooted and installed again. and now it works fine!

For me, recently with anything that requires new SU access.
I run the app, it's just a black screen while it requests my action on the SU access (Allow, Always Allow, Deny).
I select Always Allow, but if I wait for it to load, it doesn't. Instead, after I select Always Allow, I simply press Back or Home and restart the app. It works fine with SU access after that.

Less trouble than having to reinstall the app. :)
 

thunderstruck!

Senior Member
Apr 7, 2009
307
46
Chicago
I was going to update my hosts as I had to nandroid back to an earlier version, and now it says it's out of date, even though I reinstalled from the Market.
 

delta_foxtrot2

Senior Member
Feb 11, 2009
711
616
0.3.2 still doesn't work, I had a HTC magic break just before cyanogen updated his rom to include the newer JVM

the problem is the 0.3.2 works in the emulator BUT there seems to be a gzip java error in the JVM still, which seems to be the cause of the original problem, this JVM bug doesn't exist in android 2.0.1 SDK... The bug in the JVM seems to be some kind of memory leak making the app run out of memory so it can't decompress, I'm working on a work around to use the gzip binary on the system instead, but this won't be fixed in the next 10 minutes, I only just got my hands on a HTC dream and I'm trying to get it setup for testing etc.
 
Last edited:

delta_foxtrot2

Senior Member
Feb 11, 2009
711
616
After upgrading the Dream to cyanogen 2.4.12.2 is seems the JVM bug has been fixed... That saves me from making a work around I suppose :)

In short if you are getting java.io.EOFExeption errors, upgrade your firmware as the firmware you are running has bugs in the JVM.
 
Last edited:

delta_foxtrot2

Senior Member
Feb 11, 2009
711
616
I've just read the whole thread from the beginning to the end and still can't figure out two things:

1. What is the latest list that is used? I want to use the same on my computer.

All you had to was read the hosts file on your phone :)

# entries: 2010-01-02 05:20:16
# last updated 0.r.msn.com
# sources: http://www.mvps.org/winhelp2002/hosts.txt
# http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts

Although there is a few hostnames added/removed to/from the system specific to android.

2. Can you share the link to the redirecting file on BigTinCan server, so that I can also use it on my machine?

It is likely to be shifted from it's current IP for internal company reasons, but the current URL is:

https://119.161.80.9/misc/adfree.php
 

bkmo

Senior Member
Jun 25, 2008
1,890
226
10° 5' 59" North, 84° 16' 84" West
After upgrading the Dream to cyanogen 2.4.12.2 is seems the JVM bug has been fixed... That saves me from making a work around I suppose :)

In short if you are getting java.io.EOFExeption errors, upgrade your firmware as the firmware you are running has bugs in the JVM.

I still get the error on 4.2.12.2. Hitting back then download again works though.
 

Edgar_Wibeau

New member
Nov 15, 2009
3
0
Error: java.io.EOFException on Milestone

Hello all,

I have (successfully and confirmed) rooted my Milestone yesterday and when trying to run AdFree I get the above error message when I press "Download & Install Hosts". /etc/hosts doesn't get updated. Any suggestions?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    You can find the latest version of this app on the slideme app store.

    http://slideme.org/application/adfree

    This is the old thread, I started a new thread in the general section => http://xdaforums.com/showthread.php?p=40759351

    ================================================================================================================================================

    Spoiled by ad free browsing on my normal desktop computer it became increasingly annoying seeing all the ads on my phone. However it's really easy to make them disappear, although you most likely will need root on the phone.

    Download the hosts.txt file from http://www.mvps.org/winhelp2002/hosts.txt, you may need to run dos2unix over the file to remote \r characters, rename the file hosts and copy it to /system/etc on your phone and say goodbye to most ads.

    You may find the list to be imperfect, for example some feedburner URLs are "blocked" as a result which can screw with RSS feeds, although it's annoying giving too much info to Google but like everything else in life some things are a trade off.

    If you want to root your phone, try this article.
    7
    I'm getting a fatal error saying that my copy is too old, I'm using latest version from market/play store 8.44

    I've been dreading this day since my hdd was wiped a while back, I've uploaded a new version using a new signing key 0.8.45, but you'll need to remove the current version first.
    6
    I really would like to see Adfree in another store like FDroid!!

    Cheers.!

    I was uploading to slideme.org until I had issues with old signing keys being lost.

    For people wanting the current version I uploaded the apk file to the website: http://adfree.bigtincan.com/adfree.apk
    5
    new Ad blocker

    Hi folks,

    I have released my own hosts-based ad blocker named AdAway, it can be found on the market with the following features:

    • AdAway is Open Source
    • AdAway lets you select your own sources of hosts files
    • You can add exceptions to your Whitelist if some apps are not working with ads disabled
    • You can define extra hostnames in your own Blacklist

    Market: market.android.com/details?id=org.adaway
    Website: code.google.com/p/ad-away
    Source: gitorious.org/adaway

    I would like to hear suggestions and ideas for possible future releases. Please look into the Issue tracker before and add your suggestions there: code.google.com/p/ad-away/issues/list
    5
    Here, a quick edit of the host file to fix the Words with Friends and Medscape. Just copy and paste it into "/system/etc" and overwrite the host file or wherever your host file is located.

    Download: http://www.mediafire.com/?mda7sx9eovfkh03

    If you wanna do this yourself, use a text editor like Notepad++ and just remove any references to server that's being overlayed in Words With Friends and any references to Medscape.