Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Block sites /etc/host

    Support
    4
    4
    64
    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
      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

      Pulsar33 Lakotaubp 2 Replies Last reply Reply Quote 0
      • Pulsar33
        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 ...

        1 Reply Last reply Reply Quote 0
        • Lakotaubp
          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.

          Keneda 1 Reply Last reply Reply Quote 0
          • Keneda
            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.

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