Block ads busted in 0.6.2?

floyd

Member
Joined
Dec 7, 2009
Messages
153
Reaction score
1
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?
 

joe1980

Member
Joined
Sep 29, 2010
Messages
47
Reaction score
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.
 

Rodimus4180

Member
Joined
Feb 2, 2010
Messages
156
Reaction score
6
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
 

skaman9876

Member
Joined
Dec 11, 2009
Messages
103
Reaction score
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!!
 
OP
floyd

floyd

Member
Joined
Dec 7, 2009
Messages
153
Reaction score
1
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.
 

trol1374

Member
Joined
Nov 22, 2009
Messages
70
Reaction score
0
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.

Thanks for sharing. That was a quick and easy fix.
 

skaman9876

Member
Joined
Dec 11, 2009
Messages
103
Reaction score
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!
 

joe1980

Member
Joined
Sep 29, 2010
Messages
47
Reaction score
0
Nice! I didn't realize there was a dos2unix in busybox. Thanks for figuring out the easier solution, floyd!
 

westwood

New Member
Joined
Nov 17, 2009
Messages
7
Reaction score
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
 
Joined
Jan 2, 2011
Messages
4
Reaction score
0
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.

That was really easy... How long should it take to run dos2unix?
 

westwood

New Member
Joined
Nov 17, 2009
Messages
7
Reaction score
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.
 

smmfc

Member
Joined
Dec 17, 2010
Messages
278
Reaction score
1
This works great. My only question is will this work for future and or other roms?

Sent from my Droid using DroidForums App
 
M

MrBlippy

Guest
My only question is will this work for future and or other roms?

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.
 
Top