AdBlock Hosts File for Droid

Android is a Linux-based operating system, which basically means that just like the iPhone, you can add entries to the hosts file to redirect ad sites to "localhost" (your phone). This effectively wipes out the ads in the browser and in all the apps, giving your Droid a speed boost along the way.

Guide for Bugless Beast Users

  1. Launch Bugless Beast toolkit. Tap Script Helper.
  2. Tap ads -b. Tap Yes.
  3. Restart by holding down r and pressing the power button.

Guide for all users

  1. Make sure your Droid is rooted and you have ADB working.
    Check out my guides on rooting and ADB.
  2. Download the hosts file using your Droid by long-pressing on the link and saving it to the SD Card. Alternatively, you can manually place hosts.txt on your SD card under download using your computer.
  3. Open up a new Terminal window and enter this command line code, line by line, pressing return after each line:
    export PATH=~/tools
    adb shell
    su
    mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    cat /sdcard/download/hosts.txt > /etc/hosts
    mount -o ro,remount -t yaffs2 /dev/block/mtdblock4 /system
    sync
    reboot

Comments