Changing user agent reported by Ubuntu Touch
-
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. -
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).
-
I think OP is referring to being granted access via a captive portal.
-
@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.
-
@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...
-
@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.
-
@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
-
@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.