Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

[AdAway] host flashable zip

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [AdAway] host flashable zip

    Dear folks I would like to create a flashable zip which contains ad-servers.

    Based on MoAb: https://forum.xda-developers.com/sho....php?t=1916098

    Any help appreciated!

    #2
    Hmm..A host file ( loop back ip listed to 127.0.0.1)

    Seems abit outdated concept..
    It doesn't protect you from scripts/popups/crypto
    The ip needs to be listed/be-known and updated
    Slows down operatingsystem...
    and if site has a adblock detection you can not disable the adblocker to view site

    There are apps that can manage the host file like adaway : https://f-droid.org/en/packages/org.adaway/
    But the require root ( or flash)
    But these days..
    Routers have adblocker buildin incl blocking p0rn/gambling ect
    Most browsers have script/ad blocking options
    Or
    Alternatively you can use a DNS service...just at DNS ip to router/phone/tvbox (blocking ads, but also viruses)
    Or use a app like DNSchanger ( no root needed ) under Android ( doesn't work if vpn is used )

    Anyway just my thoughts

    Comment


      #3
      Hi ,

      i still use AdAway , blocks nearly all ADs , with "root" ,

      greetings / gefattern

      Comment


        #4
        Like mentioned I would Like to have a solution even without Superuser active. Easiest way seems to have flashable zip

        I even could User another ad Blocker but then I must Install a further app

        Comment


          #5
          Hi ,

          so a Solution without "root" , because your Box is unrooted , the only Way i know is , the DNS way ,

          but for this you must install Apps like : DNS66 , small App , only 3-5MB , so what , few Years ago

          there was a Guy that hosted .zip files , for blocking , but dont know the Site anymore , not sure if

          "root" was needed .

          good luck / gefattern

          Comment


            #6
            There is a solution in XDA. With a Host File.

            But do I need root in Order to flash a ZIP with TWRP???

            Comment


            • gefattern
              gefattern commented
              Editing a comment
              Hi , that is nearly the same , as i mean , that is a proof for Google , Ad free Devices , WoW , would be great

              greetings / gefattern

            #7
            Target:/system/etc/hosts.txt right?

            Comment


              #8
              Here another helpful File:



              Anyone can Help with Scripting?

              Comment


                #9
                I grabbed a zip template. Would be glad if some guys could have a closer look on it...

                ui_print(" =============================================");
                ui_print(" Flashable ZIP Template by Nicholas Chum");
                ui_print(" =============================================");
                ui_print(" ");
                sleep(1);
                ui_print(" Now mounting the system writeable....");
                sleep(1);
                ui_print(" ");
                run_program("/sbin/busybox", "mount", "/system/etc");
                ui_print(" Copying the files... ");
                sleep(1);
                package_extract_dir("system/etc", "/system/etc");
                sleep(1);
                ui_print(" ");
                ui_print(" File copy complete. ");
                unmount("/system/etc");
                sleep(1)


                So in system/etc there is the host file. I want that to be copied over to same dir on device overwriting the existing.

                But as I know, I never installed busybox. Does it come within TWRP???

                Comment


                  #10
                  Setze ich einfach noch die Rechte hiermit:

                  set_perm_recursive(0, 0, 0755, 0644, "/system/etc");

                  Nach dem Extrahieren?

                  Comment

                  Working...
                  X