pmaports/main/postmarketos-ui-gnome/APKBUILD
Oliver Smith 2722f6cac5
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/
2020-07-15 13:35:33 +02:00

27 lines
737 B
Text

# Maintainer: Martijn Braam <martijn@brixit.nl>
pkgname=postmarketos-ui-gnome
pkgver=1
pkgrel=3
pkgdesc="(Wayland) Gnome Shell"
url="https://gnome.org/"
# armhf: gdm missing
arch="noarch !armhf"
license="GPL-3.0-or-later"
depends="
gdm
gnome
kgx
polkit-elogind
postmarketos-artwork-wallpapers
pulseaudio
xorg-server-xwayland
"
install="$pkgname.post-install $pkgname.post-upgrade"
source="000-gschema.override"
options="!check"
package() {
install -Dm644 "$srcdir"/000-gschema.override \
"$pkgdir"/usr/share/glib-2.0/schemas/000-postmarketos.gschema.override
}
sha512sums="fbbcbd94b6d10320b4d470a535f92fff0b096407ff20f340d1f56645aa5c0c204473b9e65de0ce772cd18ce9cfeebf588fd1679baff952197d7c66ff72d39f93 000-gschema.override"