main/postmarketos-ui-{gnome,phosh}: less revealing epiphany user-agent (MR 1402)

Make it less trivial to fingerprint users of the epiphany browser on
postmarketOS, by replacing the postmarketOS specific user-agent with an
user-agent from a current pixel device.

Old:
	Mozilla/5.0 (postmarketOS device, like iPhone; X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15 Epiphany/605.1.15

New:
	Mozilla/5.0 (Linux; Android 10; Pixel) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.96 Mobile Safari/537.36

Taken from the following page. Note that this seems to be one of the few
cases, where not a full android build ID is included. Which makes it a
bit harder to fingerprint. Not as good as the tor browser one, but with
that one we'd have to pretend that a webkit browser is firefox.

https://developers.whatismybrowser.com/useragents/explore/operating_platform/pixel/2

Related: https://blog.torproject.org/browser-fingerprinting-introduction-and-challenges-ahead
Related: https://developer.chrome.com/multidevice/user-agent
Related: https://webaim.org/blog/user-agent-string-history/
This commit is contained in:
Oliver Smith 2020-07-07 21:37:22 +02:00 committed by Bart Ribbers
parent 7381619a40
commit 2722f6cac5
No known key found for this signature in database
GPG key ID: 699D16185DAFAE61
4 changed files with 7 additions and 6 deletions

View file

@ -10,7 +10,7 @@ search-engines=[('Search the Web', 'https://duckduckgo.com/?q=%s&t=epiphany', ''
[org.gnome.Epiphany.web]
mobile-user-agent=true
user-agent='Mozilla/5.0 (postmarketOS device, like iPhone; X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15 Epiphany/605.1.15'
user-agent='Mozilla/5.0 (Linux; Android 10; Pixel) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.96 Mobile Safari/537.36'
[org.gnome.settings-daemon.plugins.power]
sleep-inactive-ac-type='nothing'

View file

@ -1,7 +1,7 @@
# Maintainer: Martijn Braam <martijn@brixit.nl>
pkgname=postmarketos-ui-gnome
pkgver=1
pkgrel=2
pkgrel=3
pkgdesc="(Wayland) Gnome Shell"
url="https://gnome.org/"
# armhf: gdm missing
@ -24,4 +24,4 @@ package() {
install -Dm644 "$srcdir"/000-gschema.override \
"$pkgdir"/usr/share/glib-2.0/schemas/000-postmarketos.gschema.override
}
sha512sums="fa1e3b91b0c94f623fcc5ad28a738e1d2f35a9144c2c975c8234d993119e7f33f270e248ff87131ad626e2e5f4f41fab0b595617966c62d7c646e81ab9e11a17 000-gschema.override"
sha512sums="fbbcbd94b6d10320b4d470a535f92fff0b096407ff20f340d1f56645aa5c0c204473b9e65de0ce772cd18ce9cfeebf588fd1679baff952197d7c66ff72d39f93 000-gschema.override"

View file

@ -13,7 +13,8 @@ search-engines=[('Search the Web', 'https://duckduckgo.com/?q=%s&t=epiphany', ''
[org.gnome.Epiphany.web]
mobile-user-agent=true
user-agent='Mozilla/5.0 (postmarketOS device, like iPhone; X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15 Epiphany/605.1.15'
user-agent='Mozilla/5.0 (Linux; Android 10; Pixel) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.96 Mobile Safari/537.36'
[org.gnome.settings-daemon.plugins.power]
sleep-inactive-ac-type='nothing'

View file

@ -1,7 +1,7 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=postmarketos-ui-phosh
pkgver=2
pkgrel=1
pkgrel=2
pkgdesc="(Wayland) Mobile UI developed for the Librem 5 (works only with numeric passwords!)"
url="https://puri.sm"
arch="noarch !armhf"
@ -60,7 +60,7 @@ qt_tweaks() {
}
sha512sums="c51a5cf93495069d71900dd1c6fbddfa3bdfb70dbab8141d1b115b6150975a12206c63517f18dc516e0366028b32e014b6d37a20e19ff73d5f0934c518d3ab39 60-lightdm-autologin.conf
2bc94b0c457a85cadac88e48685b95e9c9a6f8d9e611a7aaf3c4dcd5c0fc846f1e6eb31f21a7e28e35507333e4c1f14d87845f042f86f00418aaec3a90d343d0 000-gschema.override
10075ef585527e2b2a47a9aba02c8089fabb099992c4cd7d634f614d3e40e9ee918803277d5534d44e7e838d6a8fa2bae43ed146c693c2ff9a1b5619f6d8c2da 000-gschema.override
4113ef59267e88d205ef1e1aec0ed11ccf817a25c232f2006a538b56fb466fad5025ad445d109e367ca92ee98d9b25f1f9a1a4b9bae2cb80df12a3739d62d10a osk.sh
57793bb079c76ba3bdcfca7880aa887de11fe80e7a05557b78435e57feabab70fbaeedc42da3aec6f914c35bba8e8ee9918367516eb45ee247f63f694624f179 gtk-app-wayland.sh
6e193eca3961a78d47b4656892eae34d019d9317a255a201f5ea61e3300caff04c526a27cd98d0edc072b36e3eaf3a1768f4cd27c5e2be8b19c167d535c820a6 qt-tweaks.sh