Navigation

    UBports Robot Logo

    UBports Forum

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

    Changing user agent reported by Ubuntu Touch

    General
    5
    8
    127
    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.
    • C
      cela last edited by

      I have been trying a access a particular free wifi hotspot using Ubuntu Touch on my Nexus 5, I can connect to the same wifi AP using Lineage OS on the same phone,but not with Ubuntu Touch.

      Other users can also connect to same wifi AP with Android and IOS

      I suspect that if I could change the user agent reported by Ubuntu touch in the Morph browser I would be able to connect ok, I did change to desktop mode in Morph but it still didn't help.

      Lineage OS is reporting Mozilla/5.0(Linux;Android 7.1.2

      Ubuntu Touch is reporting Mozilla/5.0(Linux;Ubuntu 16.4

      Is there a way to change the browser user agent? Is there a config file hidden somewhere?

      I thought I read of a advanced settings option somewhere but I
      can't find it.

      1 Reply Last reply Reply Quote 0
      • dobey
        dobey last edited by

        No, the user agent string is built from code. There is no setting for it.

        Perhaps it would help if you instead explained exactly what the issue is, rather than assuming the user-agent is it (since a wifi should be accessible from a laptop too, so user-agent shouldn't mater so much).

        1 Reply Last reply Reply Quote 0
        • arubislander
          arubislander last edited by

          I think OP is referring to being granted access via a captive portal.

          C 1 Reply Last reply Reply Quote 0
          • C
            cela @arubislander last edited by

            @arubislander said in Changing user agent reported by Ubuntu Touch:

            I think OP is referring to being granted access via a captive portal.

            Yes I am referring this. It is public wifi guest portal where you simply click an ok button on a web page to connect, not something I am in control of.

            I am pretty sure it is blocking "Other OS" by applied group policy.

            AppLee Flohack 2 Replies Last reply Reply Quote 0
            • AppLee
              AppLee @cela last edited by AppLee

              @cela You can create a webapp to access the login page with another user agent...
              That might work if it's really the cause.

              [Edit] You can also try the opposite method by faking UT's user agent from a laptop and see if you can sign in...

              dobey 1 Reply Last reply Reply Quote 0
              • dobey
                dobey @AppLee last edited by

                @AppLee said in Changing user agent reported by Ubuntu Touch:

                You can also try the opposite method by faking UT's user agent from a laptop and see if you can sign in...

                Make sure you use the full user agent string if you do. What was pasted above is not the full value.

                1 Reply Last reply Reply Quote 0
                • Flohack
                  Flohack @cela last edited by

                  @cela Why would it do that, that makes not much sense. Did you type a http:// only url (can be a random one like fkjhgjkfh.de) in the URL page? Because most captives would only work on http

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    cela @Flohack last edited by

                    @Flohack said in Changing user agent reported by Ubuntu Touch:

                    @cela Why would it do that, that makes not much sense. Did you type a http:// only url (can be a random one like fkjhgjkfh.de) in the URL page? Because most captives would only work on http

                    Yes it's https://url, I'll have a play around and try to get to the bottom of it.
                    I've got Atom and clickable up and running so I can build something to test this out and report back by findings, thanks.

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