How does my browser's user agent include my phone's model?
Linux - MobileThis forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using my own browser right now. And it reports
Code:
Browser: Mozilla/5.0 (iPhone; CPU iPhone OS 15_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/78.0.257670029 Mobile/19A348 Safari/604.1
Because that is where I have it set. So I get smaller/lighter pages.
I use naked browser on the androids I have. It allows for user agent changing.
I am using my own browser right now. And it reports
Code:
Browser: Mozilla/5.0 (iPhone; CPU iPhone OS 15_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/78.0.257670029 Mobile/19A348 Safari/604.1
Because that is where I have it set. So I get smaller/lighter pages.
I use naked browser on the androids I have. It allows for user agent changing.
I'm trying to understand how it got there and how to get it out.
Those little android browsers report what they want. Unless you have one that has a user agent switcher.
Android is all proprietary the way the phone companies and device makers have them. You'll have to get the java source for the browser and look at it. That is if it is available. Otherwise, there is nothing that you can do about it. Some hardware makers like marvel won't even release the instruction set for their processors so that you can build a kernel for one.
Android is google. You can get a ROM and install it in the phone/tablet. That is if you can find one for your device, and your phone company allows it.
That search above of Fdroid didn't show Fennec, which is firefox built from source (and signed by fdroid)...
But even firefox from aurora/playstore doesn't include any model number for my android devices. I'm still curious to see what your useragent from firefox/android shows... I pasted mine from two devices above and no device model...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.