Jagenteufel, H. (2020). Open source and privacy aware Push notifications for mobile phones [Diploma Thesis, Technische Universität Wien]. reposiTUm. https://doi.org/10.34726/hss.2020.40164
Android Push Notifications; FCM; Privacy; open source
en
Abstract:
The popularity of instant messaging services is ever rising. The metadata exposed via the usage of these services is personal and therefore very sensitive. Open source services like Signal or Wire try to improve in this regard by going some lengths to protect their users privacy. Still, even when using these services, part of the communication metadata is shared with third parties through the use of proprietary push messaging services. These services are critical for waking up devices when new messages for the end user arrive, to download the message and display a notification. Not using these central services comes at the cost of higher network and battery usage on users’ end devices. To remedy this issue, I present Push Adapter. It is an open source platform for Android apps to allow pushing of messages via a service that can be hosted by any interested party. A persistent connection is shared for receiving push messages, minimizing battery and network data overhead. Furthermore, it includes an Android library to ease integration in apps that currently employ Googles’ Firebase Cloud Messaging (FCM) service to receive push notifications. To prove the usability of Push Adapter, the open source instant messaging app Wire was forked. It was retrofitted to push messages via Push Adapter instead of FCM. This implementation is described and evaluated. My measurements of battery usage and network bandwidth overhead using the original version of Wire and my fork show that Push Adapter incurs only half of the network overhead when compared to FCM. Additionally, battery lifetime of an Android device was evaluated, which showed that Push Adapter can deliver messages more reliably than FCM while using comparable amounts of the device’s battery. To my knowledge, Push Adapter is the first open source implementation of a push notification service that tries to replace FCM in its entirety. Furthermore, Push Adapter is designed to be easily retrofitted with existing apps that currently use FCM.
en
Instant Messanging Dienste werden immer populärer. Die Metadaten, die diese Dienste erzeugen, sind äußerst persönlich und daher sehr schützenswert. Obwohl die Verwendung von open-source Software wie Signal oder Wire hier helfen kann, weniger Daten an Dritte weiterzugeben, löst sie das Problem dennoch nicht ganz. Selbst diese quelloffenen Programme verwenden proprietäre Push Messaging Dienste Dritter, wie etwa von Google oder Apple, um neue Nachrichten einfach und ohne große Verzögerung an die Endgeräte der Benutzer weiterzuleiten. Solche zentralen Dienste sind auch notwendig um die Batterielaufzeit hoch und den Datenverbrauch der Geräte klein zu halten. Um auch für diese wichtigen Dienste eine open-source Alternative zur Verfügung zu haben stelle ich in dieser Arbeit eine eigene Implementierung vor: Push Adapter. Sie ist eine quelloffene Platform, um Pushnachrichten zentral an Android Endgeräte zu übermitteln. Dennoch kann Push Adapter von Unabhängigen betrieben und benutzt werden. Es wird sowohl ein Dienst zur Übermittelung der Nachrichten, die benötigten Android Clients als auch eine Bibliothek zum einfachen Einbinden dieses Dienstes in bestehende Apps vorgestellt. Um die Praxistauglichkeit meines Ansatzes unter Beweis zu stellen wird er in die open- source instant messaging App Wire integriert, diese Integration wird im Detail beschrieben. Anhand dieser Integration wird weiters mein Dienst mit Googles Firebase Cloud Messaging verglichen. Es werden Messungen der Akkulaufzeit und des Datenverbrauchs von Wire unter Verwendung beider Dienste vorgenommen. Diese zeigen einen klaren Vorteil zu Gunsten von Push Adapter beim Datenverbrauch. Die Ergebnisse zur Batterielaufzeit zeigen eine höhere Zuverlässigkeit von Push Adapter und gleichzeitig einen vergleichbaren Energieverbrauch. Meines Wissens nach ist Push Adapter das erste quelloffene System, das versucht, Firebase Cloud Messaging für bestehende Apps zu ersetzen.
de
Additional information:
Abweichender Titel nach Übersetzung der Verfasserin/des Verfassers