Hacker News new | ask | show | jobs
by yjftsjthsd-h 14 days ago
> Well, except that /e/OS runs Google’s obfuscated DroidGuard binary in a privileged process to pass basic integrity. Yes, Google still has privileged access to your phone, unless you disable Play Integrity support in microG (which will break quite many apps). The even worse thing is that Google can send a unique DroidGuard blob just for you (since it is per request).

Something I've wondered: Graphene, AIUI, fixes this by sandboxing Google Play Services so it has no more access than any app. Given the huge obvious advantages, and that their code is open source, why do others not reuse that code to do the same? (Honestly, I'm a bit surprised that there aren't a bunch of ROMs using GOS as their upstream)

2 comments

That is really an excellent question and I don’t know the answer. Maybe they want to sell the ‘degoogled’ dream?
I guess, but then I'd expect the same sandbox could run microG
Yes, DivestOS had sandboxed microG:

https://discuss.privacyguides.net/t/divestos-unprivileged-mi...

Though I am not sure if they ever got sandboxing working with SafetyNet/Play Integrity (the thread and linked issue seems to indicate that they did not want to support it).

DivestOS still gave microG privileged access via having it impersonate Play services for apps using it. This has major consequences because microG is missing important checks. For years, microG leaked location data to apps which shouldn't have had access to it due to not performing the permission checks properly. It still has issues with this for location, network location providers and much more. Giving it central access to a Google account and sensitive FCM data is similarly trusting it to handle those while still using the Google services.
microG requires at least the privileged access of pretending to be Play services and requires more than that in practice. Sandboxed Google Play doesn't use a special sandbox but rather the standard app sandbox on GrapheneOS with all of that intact. microG can be placed into the same sandbox but it won't work since apps won't think it's Play services.
What's the point? If you look at the big picture, microG doesn't offer much in terms of privacy (from what I understand it is (has?) been leaky with things like location, so that's a privacy flaw), but is way less secure and offers far worse app compatibility.

It also doesn't make sense to use microG if you look at the big picture because it's only there for apps that rely on Google Play Services because they contain Google libraries.

Why would GrapheneOS, a project with limited resources, officially support microG when there's a far better option?

Why would GrapheneOS, a project with limited resources, officially support microG when there's a far better option?

I think they meant: why don't projects like /e/OS sandbox microG?

Oh! You might be right. I'm too used to people using the wrong wording in the community, so I might have assumed the wrong thing.
For the same reason Mozilla took an extra decade or whatever to do single-site process isolation - their users don’t seem to mind it missing.

More charitably: other stuff is deemed more important.

Like supporting phones that retailed for $49 in 2012.

Fine, awesome even, but: wildly different project core competencies and incentive structure.