I remember reading an article where the government and Google were able to read notifications and record them from every android device. I wonder if Graphene might have patched this problem, and if not, do they have any plans to do so?

Thanks!

  • dracs@programming.dev
    link
    fedilink
    English
    arrow-up
    31
    ·
    4 months ago

    The issue lies with Google’s FCM (Firebase Cloud Messaging) system, so it’s not something GrapheneOS can really fix. As far as I know FCM doesn’t offer a way to encrypt notification content. Some apps like Signal work around this by instead of sending the message content, they send a little “wake up” notification. This tells Signal on your phone to wake up and it goes and retrieves the new message.

    If you don’t install Google Play Services, you won’t be impacted. But you’ll also not get notifications for most applications. There is an alternative push notification system called UnifiedPush which allows you to choose any server to handle your notifications (and even self host it). But it does require both the service and the app to support it, so it’s not very wide spread yet.

    • Pantherina@feddit.de
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      2
      ·
      4 months ago

      Lol, FCM sends the CONTENT of messages through Google?? Wtf why do we even have “E2EE” Whatsapp then?

      • dracs@programming.dev
        link
        fedilink
        English
        arrow-up
        12
        ·
        4 months ago

        I’ve never worked directly with FCM, but that’s my understanding of the issue. I don’t know about WhatsApp. But it may do the same thing as Signal where the notification is just a wake up call and then the app connects directly to the WhatsApp servers to get the actual message.

      • d3Xt3r@lemmy.nz
        link
        fedilink
        English
        arrow-up
        6
        ·
        edit-2
        4 months ago

        Firebase is a platform/service provided by Google, so it makes sense that the content goes thru Google’s servers.

        Also, E2EE in a closed-source app like WhatsApp, run by a nefarious corporation like Meta, was always a joke concept, a marketing ploy at best. People who are truly concerned about their privacy would never touch WhatsApp.

      • dracs@programming.dev
        link
        fedilink
        English
        arrow-up
        5
        ·
        4 months ago

        It’s mostly a power efficiency thing. Before push notifications were the norm, most apps used a polling method. They had the application send a request every X seconds asking “anything new”. There wasn’t coordination between apps, so even every app checked once every 30s, it likely wouldn’t be on the same 30s. This caused the device to wake up a lot and never let it switch into low power mode.

        A push notifications system like FCM or UnifiedPush means only a single application needs to run in the background. It maintains a persistent connection to the push notification service and waits for a message. When it receives one it wakes up the relevant app and passes it the details.

    • MigratingtoLemmy@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      3
      ·
      4 months ago

      If I were to install MicroG in a different profile would the rest of my push notifications be compromised too?

        • MigratingtoLemmy@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          2
          ·
          4 months ago

          Essentially, the apps which don’t use Google FCM service are not affected (from what I understand?). I assume that there isn’t a problem on the client-side and this exploit works purely because Google stores these notifications.

          • Skull giver@popplesburger.hilciferous.nl
            link
            fedilink
            English
            arrow-up
            2
            ·
            4 months ago

            I believe apps working without FCM should be fine, or at least require more effort for third parties like law enforcement to intercept. There’s nothing preventing the NSA from listening in on the notifications of alternatives either, of course. Ideally, all notification services have their notification encrypted end-to-end. If app developers do that, FCM should be fine.

            • MigratingtoLemmy@lemmy.worldOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              4 months ago

              Would you happen to know what WhatsApp and Signal use? I believe FOSS apps from F-droid do not use Google’s notification service

              • Skull giver@popplesburger.hilciferous.nl
                link
                fedilink
                English
                arrow-up
                2
                ·
                edit-2
                4 months ago

                Both default to FCM as far as I know. WhatsApp has a fallback notification system, but I don’t think Signal does.

                Edir: correction: Signal does seem to work without FCM, but if you set it up and then nuke FCM, Signal will show a near permanent notification indicating that Signal needs Google Play services because of a bug.

                FOSS apps sometimes use FCM, though that should be labeled in the app details as an anti feature, I believe. It’s very hard (almost impossible) to write power efficient notifications without centralising the notification flow.

                There are semi-standards, like Unified Push, that can help, and UP can even use FCM as a backend if you so wish, but I don’t think many apps use it at the moment.

                • MigratingtoLemmy@lemmy.worldOP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  4 months ago

                  Thanks, I’ll go read some more. I’m trying to move away from WhatsApp and wanted to run Signal in my main profile on Graphene. I hope I can use it without FCM there.

          • dracs@programming.dev
            link
            fedilink
            English
            arrow-up
            3
            arrow-down
            1
            ·
            4 months ago

            Anything using FCM will be effected. UnifiedPush which I mentioned I don’t believe has an option to encrypt notification content either. Using it you’d already at least have the option of using a provider with a better privacy policy or self hosting it.

            • evo@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              2
              ·
              edit-2
              4 months ago

              I don’t believe has an option to encrypt notification content either.

              This is not an option you would actually want from any service.

              You don’t want to be giving the plain text message to anyone to encrypt. Instead the notification contents should be given to the service provider (FCM or anyone else) already encrypted and only able to be decrypted by the app.

  • Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    English
    arrow-up
    12
    ·
    4 months ago

    Graphene can’t fix the apps you install. Their data is being intercepted outside of your phone.

    Some apps will encrypt their messages, so Google and anyone listening in can’t use decode the message. Others basically send a “check for new messages” signal rather than the actual message, which then has the app reach out to the online service and fetch the message directly before displaying a notification. Either approach minimises metadata collection, so if your apps are using these methods you should be fine.

    If your apps are directly sending message contents unencrypted, you’re screwed. Your only option would be to find another app or to not use Google’s messaging system, breaking notifications in many apps and adding more battery drain to the ones that so still support notifications.

  • /bin/bash/@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    4 months ago

    I don’t recall any article like you said; can you provide me with a link?

    Also, reading notifications is only possible if the notifications are not encrypted; otherwise, it is not possible.

    And this relies on the service that is sending the notification and has nothing to do with the OS you are using.