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

Changing user agent reported by Ubuntu Touch

Scheduled Pinned Locked Moved General
8 Posts 5 Posters 754 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.
    • C Offline
      cela
      last edited by 24 Feb 2020, 19:51

      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.

      2x UBported Nexus 5 LG-D821

      1 Reply Last reply Reply Quote 0
      • D Offline
        dobey
        last edited by 24 Feb 2020, 21:24

        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
        • A Offline
          arubislander
          last edited by 25 Feb 2020, 05:54

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

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          C 1 Reply Last reply 25 Feb 2020, 19:33 Reply Quote 0
          • C Offline
            cela @arubislander
            last edited by 25 Feb 2020, 19:33

            @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.

            2x UBported Nexus 5 LG-D821

            A F 2 Replies Last reply 25 Feb 2020, 20:20 Reply Quote 0
            • A Offline
              AppLee @cela
              last edited by AppLee 25 Feb 2020, 20:20

              @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...

              D 1 Reply Last reply 25 Feb 2020, 21:12 Reply Quote 0
              • D Offline
                dobey @AppLee
                last edited by 25 Feb 2020, 21:12

                @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
                • F Offline
                  flohack @cela
                  last edited by 25 Feb 2020, 22:59

                  @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

                  My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                  C 1 Reply Last reply 26 Feb 2020, 09:12 Reply Quote 0
                  • C Offline
                    cela @flohack
                    last edited by 26 Feb 2020, 09:12

                    @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.

                    2x UBported Nexus 5 LG-D821

                    1 Reply Last reply Reply Quote 0
                    4 out of 8
                    • First post
                      4/8
                      Last post