Block ads busted in 0.6.2?

Discussion in 'Bugless' started by floyd, Dec 30, 2010.

  1. floyd
    Offline

    floyd New Member

    Joined:
    Dec 7, 2009
    Messages:
    153
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    NYC
    Installed without wipe over 0.6.1 and now Angry Birds Seasons is giving me popups (as well as news sites) even with block ads enabled in rom settings menu. Even tried command line script on terminal to block ads but no go. Dang.

    Anybody else?
  2. lepa71
    Offline

    lepa71 New Member

    Joined:
    Aug 10, 2010
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    0
    Ads are not blocked in apps.
  3. joe1980
    Offline

    joe1980 New Member

    Joined:
    Sep 29, 2010
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    0
    Fix

    The hosts file format in BB v0.6.2 is slightly messed up. The file is in DOS format and not in UNIX format. The following seemed to work for me:
    1. Unzip the BB v0.6.2 zip file and find system/etc/hosts in it
    2. Use the dos2unix tool to convert the file to UNIX format
    3. Use adb to remount /system as writeable, and push the modified hosts file to your phone: e.g. "adb push C:\downloads\bb062\system\etc\hosts /system/etc/hosts"
    4. Fix permissions on the hosts file. I did this using Terminal Emulator: "chmod 644 /system/etc/hosts"
    5. reboot

    Hope this helps! Now, the only issue I've got left with BB v0.6.2 is force closes when going to the "Location & Security" screen in system settings.
  4. Rodimus4180
    Online

    Rodimus4180 Member

    Joined:
    Feb 2, 2010
    Messages:
    156
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    Prescott, AZ
    Yep and Westwood confirmed even with wipe ad block is still busted. No biggie though its a minor thing IMO, I'm sure Pete can come up with a patch for it.

    Sent from my Droid using DroidForums App
  5. Rodimus4180
    Online

    Rodimus4180 Member

    Joined:
    Feb 2, 2010
    Messages:
    156
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    Prescott, AZ
    Looks like Joe figured it out while I was posting...

    Sent from my Droid using DroidForums App
  6. skaman9876
    Offline

    skaman9876 New Member

    Joined:
    Dec 11, 2009
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    0
    Is there any way someone might be able to upload the fixed unix version of the host file for us simple minded folk? It would be very appreciated, then it sounds like we would just have to replace the file and reboot right? Any help would be greatly appreciated and new year...new rom. I'm a happy camper! Thanks Pete!!
  7. floyd
    Offline

    floyd New Member

    Joined:
    Dec 7, 2009
    Messages:
    153
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    NYC
    I just found it's easy to fix from terminal emulator. The hosts file is around a 600 MB text file that lists almost every ad server website known to man. Wonder how it gets updated?

    I went into terminal emulator and did this to fix ad block using info from previous poster. I'm no linux whiz so this is not very elegant:

    su
    sys -rw
    cd system
    cd etc
    dos2unix hosts hosts

    Wait til you get a new prompt. Exit terminal. Reboot. Badabing. Thanks for tagging the hosts file as the prob! I love learning new stuff.
  8. trol1374
    Offline

    trol1374 New Member

    Joined:
    Nov 22, 2009
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    0
    Thanks for sharing. That was a quick and easy fix.
  9. skaman9876
    Offline

    skaman9876 New Member

    Joined:
    Dec 11, 2009
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    0
    Floyd i really appreciate you dumbing it down for us (me). I don't know what it is but i'm just coding/linux illiterate and really need to change that. Many thanks to you for the simple fix!
  10. joe1980
    Offline

    joe1980 New Member

    Joined:
    Sep 29, 2010
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    0
    Nice! I didn't realize there was a dos2unix in busybox. Thanks for figuring out the easier solution, floyd!
  11. westwood
    Offline

    westwood New Member

    Joined:
    Nov 17, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Lake City, MN
    floyd, Great Job. I have never had the time to dig into the operating system and have been content to flash roms & themes as needed.

    This fix worked great and may serve to get me to do more exploring!

    Roger
  12. Bobo the Drunken Elephant
    Offline

    Bobo the Drunken Elephant New Member

    Joined:
    Jan 2, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    That was really easy... How long should it take to run dos2unix?
  13. westwood
    Offline

    westwood New Member

    Joined:
    Nov 17, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Lake City, MN
    Bobo, Did you catch the space between sys -rw?

    I was trying this the first time and not getting results because I missed the space.

    Otherwise, the command you asked about, dos2unix, was very fast. I don't want to say instantaneous, but very quick in its performance.
  14. smmfc
    Offline

    smmfc Member

    Joined:
    Dec 17, 2010
    Messages:
    279
    Likes Received:
    1
    Trophy Points:
    18
    This works great. My only question is will this work for future and or other roms?

    Sent from my Droid using DroidForums App
  15. MrBlippy
    Online

    MrBlippy Guest

    By 'this', are you referring to the hosts file or the method to correct the line endings in the file? If the former, it is hard to tell if it will be saved with DOS line endings in the future. If it is, the problem will arise again. Dos2unix will always work on any file saved with DOS line endings. The resulting file will be saved with unix style line endings.
Search tags for this page

block ads with terminal emulater

,

how to stop commercials from coming up on angry birds

,

how to stop pop-ups for angry birds in space

,

remove ads with terminal emulator