UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Is it possible to block ads via hosts file on UT?

    Scheduled Pinned Locked Moved Solved Support
    hostsadsblock
    32 Posts 8 Posters 5.1k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • AppLeeA Offline
        AppLee @Opolork
        last edited by

        @opolork
        Yes you should open a console and type it on your computer with the device attached to it.

        OpolorkO 1 Reply Last reply Reply Quote 1
        • OpolorkO Offline
          Opolork @AppLee
          last edited by

          @applee Ok, cheers, AL. 🙂

          Merry Xmas!

          How can you trust that an app really won't send some company your location data, when you tell it not to? The only way you can trust a program not to do something it isn't supposed to do is if it is free software. ~ RMS

          1 Reply Last reply Reply Quote 1
          • OpolorkO Offline
            Opolork @AppLee
            last edited by

            @applee said in Is it possible to block ads via hosts file on UT? [Resolved]:

            For ADB (which I do not use) you can type a single command like this adb shell sh after connecting your device with USB cable.

            I got this:

            adb shell sh

            error: no devices/emulators found

            How can you trust that an app really won't send some company your location data, when you tell it not to? The only way you can trust a program not to do something it isn't supposed to do is if it is free software. ~ RMS

            N 1 Reply Last reply Reply Quote 0
            • N Offline
              nero355 @Opolork
              last edited by

              @opolork
              Did you Enable Developer Mode and USB Debugging ?! 😉

              My phones :

              • BQ Aquaris E5 HD Ubuntu Phone Edition - Ubuntu Touch 16.04 LTS
              • ZUK Z2 Pro - ZUI Android 8.x
              • Xiaomi Mi 9T - Jolla SailFish 3.4.x Community Build

              P.S. : I am NOT a developer! ;)

              OpolorkO 1 Reply Last reply Reply Quote 1
              • OpolorkO Offline
                Opolork @nero355
                last edited by Opolork

                @nero355 Hi. Dev mode is enabled. I don't see any option to enable USB debugging.

                Edit: I did a reboot and was then able to run adb shell sh to connect to the phone from my PC. The shell doesn't seem to have tab auto complete. Also when I opened a text file on the phone, I couldn't save any changes I made in nano (Ctrl-x did nothing).

                How can you trust that an app really won't send some company your location data, when you tell it not to? The only way you can trust a program not to do something it isn't supposed to do is if it is free software. ~ RMS

                N 1 Reply Last reply Reply Quote 0
                • N Offline
                  nero355 @Opolork
                  last edited by

                  @opolork
                  Which file were you editing ??

                  Perhaps because the system needs to be remounted in write mode in order to edit certain files ?

                  My phones :

                  • BQ Aquaris E5 HD Ubuntu Phone Edition - Ubuntu Touch 16.04 LTS
                  • ZUK Z2 Pro - ZUI Android 8.x
                  • Xiaomi Mi 9T - Jolla SailFish 3.4.x Community Build

                  P.S. : I am NOT a developer! ;)

                  OpolorkO 1 Reply Last reply Reply Quote 1
                  • OpolorkO Offline
                    Opolork @nero355
                    last edited by

                    @nero355 I was trying to edit the hosts file. How do I remount it in write mode?

                    How can you trust that an app really won't send some company your location data, when you tell it not to? The only way you can trust a program not to do something it isn't supposed to do is if it is free software. ~ RMS

                    N 1 Reply Last reply Reply Quote 0
                    • N Offline
                      nero355 @Opolork
                      last edited by

                      @opolork said in Is it possible to block ads via hosts file on UT? [Resolved]:

                      How do I remount it in write mode?

                      The easiest way :

                      • Install UT Tweak Tool from the OpenStore
                      • Choose "System" from the top left menu.
                      • Choose "Make image writeable"
                      • Pick any of the two other options! 🙂

                      My phones :

                      • BQ Aquaris E5 HD Ubuntu Phone Edition - Ubuntu Touch 16.04 LTS
                      • ZUK Z2 Pro - ZUI Android 8.x
                      • Xiaomi Mi 9T - Jolla SailFish 3.4.x Community Build

                      P.S. : I am NOT a developer! ;)

                      OpolorkO 1 Reply Last reply Reply Quote 1
                      • OpolorkO Offline
                        Opolork @nero355
                        last edited by

                        @nero355 Thanks and Happy NY. 🙂

                        How can you trust that an app really won't send some company your location data, when you tell it not to? The only way you can trust a program not to do something it isn't supposed to do is if it is free software. ~ RMS

                        1 Reply Last reply Reply Quote 1
                        • OpolorkO Opolork has marked this topic as solved on
                        • L Offline
                          L-00673
                          last edited by

                          Happy new year

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post