27-05-202309:25 PM - last edited 28-05-202305:00 PM
After many experiments (clear cache, disabling auto updates, updating everything what's possible, disable location services) and searching in the internet how to calm down Google Play Services from draining my battery, I got a random solution while trying to install BetterBatteryStats.
I noticed that after giving an access to the private APIs everything become normal and Google Play Services uses my battery no more than 1-2% (comparing to 15% before).
How to do it:
Install necessary ADB drivers and exe on your PC This may be the tricky part but we can leverage some experience in that area. A good read: The 15 second adb installer
Enable USB debugging on phone’s developer options
Connect phone to PC The easiest part: connect the usb cable on both ends. When you connect the phone to PC on ADB, some models will throw a authorization message on phone Screen asking if you authorize this pc to access the phone.
Run the commands This requires some explanations and some hints about how to check what may have gone wrong. Once you have connected your phone via usb start by unlocking your phone and by issuing the command:adb devicesIf it came back with a Device name instead of waiting for device orno permissions(on linux), then you know its safe to go ahead with the real command. Its this adb devices that also triggers the Authorize pc command.
The command itself:
adb -d shell settings put global hidden_api_policy 1