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

    Block sites /etc/host

    Scheduled Pinned Locked Moved Support
    4 Posts 4 Posters 382 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.
      • A Offline
        augustblake
        last edited by

        I searched it on here but haven’t had any luck. Does anyone know how to block sites with etc/host on ubports. Also lol if anyone knows how to make a guest account. It doesn’t seem very safe to have admin only on here.

        Thank you

        Pulsar33P LakotaubpL 2 Replies Last reply Reply Quote 0
        • Pulsar33P Offline
          Pulsar33 @augustblake
          last edited by Pulsar33

          @augustblake :
          There could be a simplest way with adb, I don't know.
          Here is how I did with simple means, assuming that Terminal is installed :
          Put your desired hosts file in Memory Card's /Documents folder.
          This file must include the lines of the original hosts file of your phone

          Stop all radio interfaces

          Insert the memory card. Launch the Terminal.

          ls /media/phablet => XXXX-YYYY
          
          sudo mount -o remount,rw /
          cd /etc
          sudo mv hosts hosts_org
          sudo cp /media/phablet/XXXX-YYYY/Documents/hosts .
          

          Ignore "cannot create regular file" message if any
          Restart and check

          BR
          Pulsar33

          Check twice when you enter the line sudo mount ...

          Aquaris BQ E5 HD UBports OTA-25 (currently testing features)
          Aquaris BQ E5 HD Ubuntu Edition Canonical OTA-15 (last Canonical version, daily use)
          Raspberry Pi 4 B - 4 GB & 8 GB with various OS and Desktops (UBports not OK)

          1 Reply Last reply Reply Quote 0
          • LakotaubpL Offline
            Lakotaubp @augustblake
            last edited by

            @augustblake Please explain further what you mean about guest account and admin. We don't have guest accounts unless you mean browsing without joining (very limited options). If your worried about your details they are safe but as i said explain further.

            KenedaK 1 Reply Last reply Reply Quote 0
            • KenedaK Offline
              Keneda @Lakotaubp
              last edited by Keneda

              @Lakotaubp said in Block sites /etc/host:

              @augustblake Please explain further what you mean about guest account and admin. We don't have guest accounts unless you mean browsing without joining (very limited options). If your worried about your details they are safe but as i said explain further.

              He wants "guest" account on his ubport device.

              @augustblake said in Block sites /etc/host:

              Also lol if anyone knows how to make a guest account. It doesn’t seem very safe to have admin only on here.

              uTouch works on sandbox basis or quite similar, all important files and folders are read only, and quite all apps have low privilege access.

              Only some trusted, and reviewed apps, have full system access, and those apps will for most ask you for your account/device admin password to allow you to "mess" with important system parts.

              2015-2023 : Meizu MX4 ☠️⚰️✝️
              2023-2024 : Nexus 5 ☠️⚰️✝️
              2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
              🇲🇫🇬🇧

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