• GeneralPixel 6
  • Sandboxed play store + services take a toll on battery life

Hello! I just installed GrapheneOS and I love the privacy and security of it, but I have figured out that the sandboxed play services has taken a major toll on my battery. I'm not sure if this is hardware or software optimization and I have to switch to CalyxOS for better battery life. Should I re-flash stock December 2022 or should I tinker with the software more?

    Is it always running? I stopped the execution and my battery usage is fine

    They do the same on factory! Google's closed source crap is TERRIBLE for your battery.

    CalyxOS uses an open source re-implementation called uG ("micro"-G), which has the same kind of extensive privileges as factory would have. Its debatable whether it is more or less secure than google's closed source implementation, but nowhere near what you get with Graphene's sandboxed approach, which significantly reduces the data it has access to.

    My advice is to learn to go without the google crap, then you completely eliminate the security risk AND the battery consumption. I ditched the last bits of google crap when they started working with governments for covid tracking, and to be honest, I've lost nothing.

    Google Play Services is a monolith, which has many running services and eats battery as a result. If you have Developer Options enabled, go to 'Settings - Developer Options - Running Services' to see how many processes and services are running on your device.

    Like abcZ said, this isn't specific to GrapheneOS. I would try and get away from using Google Play Services as much as possible. microG is lighter and better for battery in this regard because they do not implement all Play Service APIs and do not have as many running services. Because not all Play Service APIs are implemented, microG isn't as compatible with some apps that depend on Play Services.

    If I could do it with both, I would run microG for apps that required push notifications in one profile and in another profile, I would run Play Services for apps I need support for such as Google Voice. However, such a setup is not possible at this time. I know some of the GOS users would probably disagree with this approach, but this is what would work for my needs.

    What I currently do is I have only Play Services installed in another profile. Whenever I am done checking certain apps, I end that profile's session. In an ideal world, I wish there was a way we could pick and choose which Google Play Services were running at any given time. I only really care about the GCMService for notifications. The rest like the Exposure Matching Service I would want to stop.

    graphenepixeled Just to make sure that you've installed Sandboxed Google Play in the proper way:

    • Have you installed all 3 apps from the "Apps" application (GSF, Play Services, Play Store) on your device?
    • Does Play Services/Store have the network permission granted to them?

    In general, please describe your setup to us, and let us know how much battery they are consuming, because it currently sounds like you're experiencing that may be a bit outside of the norm.

      matchboxbananasynergy
      He's probably just talking about the average power consumption of these services. Without these running, the battery lasts about 30-50 percent longer, depending on usage. But i think that's typical for android. Even the stock google rom shows this behavior. Both, GrapheneOS and Stock Google don't take much power when in idle or standby, but once you use them, the google services of course drain a lot of battery because they are connected to everything in some or the other way.