1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

Android adblocker [terminal][busybox]

Discussion in 'Android Phones' started by Shadows07, Aug 24, 2016.

  1. Shadows07

    Shadows07 Enthusiast Established

    Must Read!
    *Your warranty is now void.
    * I am not responsible for bricked devices, dead SD cards, nuclear disasters
    * Please do some research before using this mod!
    * YOU are choosing to make these modifications


    INTRODUCTION:
    An ad blocker that uses the hosts file. The hosts file contains a list of mappings between hostnames and IP addresses. When an app requests an ad, that request is directed to 127.0.0.1 which does nothing. There are options to run a web server to respond to blocked hostnames and to direct requests to the IP address of your choosing. You can download hosts files from the app but it is possible to use your own and to add certain sites to the white- and black-lists.

    REQUIREMENTS:

    • Busybox v1.24.1(Recommended stericsons busybox Please or Register to view links)
    • Minimal ~5MB free space on system partition for hosts file
    HOW TO Use:
    1.Download adblocker.pdf from Android File Host
    2. Remove .pdf extension
    3. Copy adblocker file to /system/bin
    4. Set permissions to 755 (see how to set permission below)
    5. Open terminal and type
    $ su
    $ adblocker

    How to set permission

    1. if you are using terminal, run this code
    $ su
    $ busybox chmod 755 /system/bin/adblocker

    2. or you can use any root file manager, go to file properties of adblocker and you will see
    permissions, 755 must to look like this

    XXX
    X-X
    X-X

    credits: Paget96 of XDADevelopers


    Ito pala link don sa adblocker.pdf ...
    Please or Register to view links
     
    henjie likes this.
  2. henjie

    henjie Forum Expert Established

    thanks dito sir
     
    Shadows07 likes this.
  3. Shadows07

    Shadows07 Enthusiast Established

    Welcome :)

    Welcome:)
     
  4. boss?
    pde naman siguro yung lucky pâtcher sa Toolbox tab then block ads from device.
    yan yung ginawa ko para walang ads forever. :)
    mas madali kasi..
     
  5. Shadows07

    Shadows07 Enthusiast Established

    Marami tlga ang paraan ng pagblock ng ADS. Kaya lang nakaka beastmode pag commands ginagamit mo hehehehe :)
     
  6. Hehehehe..
    Oo nga boss kya lucky pâtcher gamit ko kasi nakaka stress kapag ganyang method..
    :)
     
Tags / Keywords: