yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] alaa96:
disabling the gms service did stop the cpu high usage but rip push notifications whatsapp/telegram/discord nothing works iam on a13 running project404
[Android Q&A, Help & Troubleshooting] amn1987:
I didn't face issues with notifications after moving to A12 from A11. Are you using a 2-3 months A13 build? In my experience this issue crops in that time frame regular as clockwork.
[Android Q&A, Help & Troubleshooting] mmortal03:
PixelExperience supposedly came up with a fix for this a few months ago (the code is referenced at the end of the bug report). If it actually works (I don't use PE), maybe the same code can be implemented in other ROMs: https://github.com/PixelExperience/android-issues/issues/4478
[Android Q&A, Help & Troubleshooting] DP FH:
The problem is PE is not maintained on my device (Mi 10T Pro). For now I used the chimera workaround but looks like I have to change ROM.
[Android Q&A, Help & Troubleshooting] NiPfi:
I'm on Lineage OS 20 and I needed this fix for my phones battery not to drain. Does anybody know if it's being fixed in the ROM itself?
[Android Q&A, Help & Troubleshooting] mmortal03:
It's going to depend on which phone you have.
[Android Q&A, Help & Troubleshooting] NiPfi:
So there is a changeset in the LOS codebase that fixes the issue, that is potentially not yet included in the build for my device (Fairphone 4)? Do you know if there's a PR or something open for it and/or how to find it?
[Android Q&A, Help & Troubleshooting] mmortal03:
Where did you hear this? I searched around on Gerrit and didn't find anything, but feel free to search: https://review.lineageos.org/q/status:open+-is:wip
[Android Q&A, Help & Troubleshooting] NiPfi:
I was inferring it from you saying it's device dependent. Maybe I misunderstood that but how could it be device dependent if it wasn't fixed at all in LOS? Is it a kernel level bug?
[Android Q&A, Help & Troubleshooting] amn1987:
From what I understand Pixel Experience is developed completely independent of LOS unlike many others like crDroid, Havoc etc. that are based off of the latter. Probably the CAF based ones like Reloaded, Paranoid Android etc. are also have no dependency on LOS.
[Android Q&A, Help & Troubleshooting] NiPfi:
So this thread is specific to Pixel Experience? Bc I thought it was about the general issue in AOSP Android 13. I might need to report this in some LOS related community in that case.
[Android Q&A, Help & Troubleshooting] amn1987:
Of course not. If the fix is incorporated in AOSP then it should reach all the ROMs including LOS and PE. Not sure about CAF. Right now the only info available is about a probable fix by a dev working on PE for a specific device. It doesn't mean that it will automatically land up in LOS as well. Also this problem first appeared way back in Android 11.

P.S. One user had reported that the fix didn't work in his case.
[Android Q&A, Help & Troubleshooting] NiPfi:
Ah okay, that makes sense. That's really frustrating... Maybe I need to get rid of Google Services altogether, to avoid this issue on a custom ROM, since I can't go back to stock bc that is A12 based.
[Android Q&A, Help & Troubleshooting] mmortal03:
That's an option, if you can manage it. It also depends on whether Pixel spoofing was used in the distribution you're wanting to use, so you might be able to find one that did not use Pixel spoofing. I can't answer that for your particular phone, though.
[Android Q&A, Help & Troubleshooting] amn1987:
You can use the hack mentioned in the first post if your device is rooted. Otherwise you can try microG. Official LineageOS shouldn't include Pixel Spoof I think. Some other ROMs as well. If the ROMs are updated monthly for your device and you update regularly then it shouldn't be an issue. It's only when the build is a month or two out of date that this problem occurs.
[Android Q&A, Help & Troubleshooting] mmortal03:
I keep thinking that if we could just find whichever file contains the date that it checks to decide whether to try to check for an update -- probably the build date, but that doesn't guarantee it's what shows in the settings, but it could be -- then we could simply use TWRP to flash that same file, just containing a modified date (something far into the future, of course; alternatively, you could be very careful and just use the current date and then just change it every few months).
[Android Q&A, Help & Troubleshooting] X3User:
So here are my experiences so far:

The longest aosp rom I've used with gphotos spoof is only a month. I even tried lineage os without any spoof but few minutes later the gms battery drain is there. I've also tried to use 2 miui a10 based rom rom without the spoof but the issue is still there, even if I have updated the play services on the settings app. I've also seen issues like this with miui roms that have spoof (even a dev in our community stated that spoofing has been remove since it's draining the battery). Now I've flashed a miui 14 based rom (no spoof) back on march that has a feb security patch and I've been using it since then. No gms battery drain because play services have been automatically updating monthly. So in my conclusion what matters here is the pixel spoof, the age of the rom and the ability of gms to update automatically. From screenshots in my community I saw that paranoid android (caf) and project blaze has an option to update google services under the security tab on settings app. Does any of you uses a rom that has an option to update the play services under the security tab? And if you do, do you still face this issue?
[Android Q&A, Help & Troubleshooting] amn1987:
For one of my devices until the last month the last ROM available was Havoc with August 2021 security patch. Back then Havoc probably didn't include the Pixel Spoof. Anyway despite almost 2 years of no updates there's never been any sign of this issue in the build.
[Android Q&A, Help & Troubleshooting] mmortal03:
I'm skeptical of whether Google Play Services being updated recently affects this. I'm on crdroid 7.25 potter, ROM last updated December 13, 2022, with people in the potter thread having been experiencing this bug for a number of months now. However, my Play Services is up to date, as of August 4th, version 23.30.13 (150400-552628474).

That said, the Android security update of the crdroid 7.25 potter ROM *is* December 5, 2022, so that might also be an important variable to consider. I don't know if we've narrowed down the bug to the exact day it starts.

Like I said above, I've had the theory that it's the build date, but it could be the Android security update date. If we could figure out which date it is using, it'd be very helpful.

Maybe @cjdijk or @amn1987 have an idea?
[Android Q&A, Help & Troubleshooting] amn1987:
It's down to the security patch from what I can tell. Play Services version doesn't seem to have any role as even in case of ROMs that are several months old I always flash the latest GApps package.
[Android Q&A, Help & Troubleshooting] cjdijk:
I agree with amn1987. The date of the rom matters, not the date of GApps. The only way to avoid battery draining is, making sure the ROM isn't older than about 3 months, or don't install GApps at all.
[Android Q&A, Help & Troubleshooting] x0xb0x:
Hello and thank you to everyone here! Because of this thread I really found some solutions and subscribed today to thank you and also share input from my side.

So in my case:

I also cannot figure out as well if the spoof is the sole reason of Google services going haywire.

All of my devices exhibited the same CPU drain issues everyone has. I disabled Chimera and afterwards some more Google services via a boot script inside services.d.

My devices:

* Xiaomi Mi9 with crDroidAndroid-11.0-20220912-cepheus-v7.22 and NikGapps-core-arm64-11-20230418-signed. Spoofing active due to PixelPropsUtils used in rom as seen on Github

* Xiaomi Poco F1 with crDroidAndroid-11.0-20220220-beryllium-v7.15 and NikGapps-core-arm64-11-20230418-signed. Spoofing active due to PixelPropsUtils used in rom as seen on Github

* Xiaomi Redmi Note 3 (Kate) with Havoc-OS-v3.12-20210114 and BiTGApps-arm64-10.0.0-v2.0-BASIC

(Bitgapps April 2023). Supposedly this one is not spoofed.

The weird thing is that for my latest device on HavocOS 10:

* I see no usage of spoofing inside (branch 10) framework file https://github.com/Havoc-OS/android...en/core/java/android/app/Instrumentation.java

Even the latest supposedly not spoofed device (Kate on HavocOS) goes berserk as well, various Google services hit a constant 45~70% cpu usage after booting as seen by top. But in this device it is NOT SystemUpdate going nuts like in CrDroid.

As already mentioned by @amn1987 @mmortal03 @cjdijk there seems to be a combination of factors causing this ****show.

IMHO forced updates/cloudification and forced obsolescence of perfectly capable devices is sheer madness. After I deployed new adaway rules, enabled gms doze, added the pm disable script, disabled auto sync and various other Google trash... I have HUGE Battery sot, like 7~8 HOURS screen on time on a 4000mah battery with heavy usage.

There sure is a multitude of non working Gapps but I only use Maps. Other apps I use such as Viber and Fb Messenger continue to work and receive notifications on time.

I still am puzzled as to what is causing this mayhem. In the past during e.g. Oreo and Pie, I would leave a device with the same AOSP rom and Gapps for years with no issues. OTA has bitten me quite some times on custom roms e.g. a bad update force encrypting data partition, TWRP having a bad day etc so I just clean flash always.

I just want a device left in the drawer for 6 months to still function as before. But this madness seems to become a trend. I will probably try to degoogle myself totally.
[Android Q&A, Help & Troubleshooting] amn1987:
I own Redmi Note 3 (Kenzo) as well and in both Havoc 3.12 & 4.8 Unofficial there's no Pixel Spoof because back then this wasn't included in the Havoc source reportedly. However it was added sometime later. So yesterday's Havoc 4.21 build should include it. Havoc 4.8 uniquely suffered from a similar issue thanks to iorap.cmd.compiler process. It would activate itself randomly even when the device is unplugged at times and run for hours and hours keeping CPU0 at 100%.However back in 2022 it was dropped from AOSP itself. So the latest build should be free of it at least. I had also tested a crDroid build recently and there was no sign iorap.cmd.compiler.

In both 3.12 and 4.8, com.android.gms.persistent randomly keeps the CPU0 at 100% for quite a while, upto 40 odd mins in my experience.

I used to terminate both processes.
[Android Q&A, Help & Troubleshooting] x0xb0x:
Thanks for replying!

Indeed my HavocOS 10 build v3.12 is spoof free but services still go berserk including com.android.gms.persistent.

My Kate is used as a retro emulation device and with all other roms/HavocOS versions it exhibits Bluetooth lag with my old ipega telescopic controller. Only HavocOS version v3.12 alleviates it. It is a Bluetooth noncompliance issue from controller side (crazy latency). I am just going to reflash this device fully ungoogled and sideload all apks.

My other two CrDroid devices (spoofed) are exhibiting the classic SystemUpdate log spamming - just disabling Chimera intent solves these.

On my Mi9 I will also have a look at iorap.cmd.compiler if it exists etc.

Nevertheless,

I am planning to build CrDroid 11 myself for Poco f1 and manually remove PixelPropsUtils from framework code. Will report back if I manage to do it.

After this feedback we all shared though I seriously doubt de-spoofing alone will solve these Google services issues. Especially for devices forced to run older roms.
[Android Q&A, Help & Troubleshooting] amn1987:
I don't see any drawback of using the temporary fix. In the intial months there were issues with not receiving notifications particularly from Google apps but later that doesn't seem to be the case. My F1 runs the months old crDroid 8.10/11 and notifications etc are delivered just fine.
[Android Q&A, Help & Troubleshooting] mmortal03:
Nothing new to report here, but for people who want a GUI way of disabling that .chimera.GmsIntentOperationService, I'm rooted with Magisk and am using the Servicely app to disable it, and that works fine. It's easier to do it that way, and if I'm on the go in the future and need to re-enable it for some reason, I won't need the console command. But right now, I'm only using the phone for basic SMS and calling, so it's not needed to be enabled.
[Android Q&A, Help & Troubleshooting] amn1987:
Back then when I was furiously looking for a solution I had tried the Servicely way as well but after sometime for whatever reason it could no longer block it. Later uninstalled the app itself.
[Android Q&A, Help & Troubleshooting] mmortal03:
Interesting. I'll keep tabs on it. The Servicely app is no longer being updated, so the version I'm using is the version you were using. I've been looking at other apps to use, but haven't settled on one yet. It'd be nice to find one which can do what the pro version of Servicely did, without needing to be logged on to a Google account to pay for the pro features.
[Android Q&A, Help & Troubleshooting] x0xb0x:
Servicely as an app is great and ideal for simply disabling Chimera. It is sad that there seems to be no similar thing actively developed.

The only caveat I could see with it are some user reports saying about mysterious permanent crashes

leading the device into a nonrecoverable state. I assume these happened because of complex service setups though.
[Android Q&A, Help & Troubleshooting] X3User:
So I've been using a modded safety net fix since previous ones don't work and when I add a new google account it was recognized as pixel which made my stomach drop. I've removed the module and restarted my device and it's not recognized as a pixel anymore but the drain is still there. I will update later

Edit: It looks like it has been fixed by clearing the data and uninstalling update of gms but the weird thing is all of my account got signed off. I guess my safetynet will be broken for a while...
[Android Q&A, Help & Troubleshooting] x0xb0x:
I personally stopped caring about safetynet since my bank provider also offers web access+sms.

But unfortunately this safetynet disease is going to become the norm and mandatory in even more apps.

Using just Magisk hide for suspicious apps many times works since not everything use safetynet.

If you see constant drain and are rooted just do the first post's workaround with pm disable for Chimera intent, it works almost always.
[Android Q&A, Help & Troubleshooting] X3User:
Yeahhh. I don't use any apps that concerns safety net so I'm not going to flash that for now. I was just surprised that even safetynet fix have pixel props since I didn't encountered it on the previous versions. Lucky for me the drain was fixed as it's a hussle to flash and set everything up.
[Android Q&A, Help & Troubleshooting] cjdijk:
I have installed lineage-18.1-20230808-UNOFFICIAL-potter_security-patch-date_2023-08-05.zip yesterday, becouse battery usage was going op using lineage-18.1-20230708-UNOFFICIAL-potter_security-patch-date_2023-07-05.zip (Moto G5 Plus)

Unfortunately battery drain still is high. I guess not only rom date but also GApps date is cousing battery drain. So both ROM and GApps have to be less then 3 months old. I am using MindTheGapps-11.0.0-arm64-20230323.zip from https://sourceforge.net/projects/wsa-mtg/files/arm64/20230323/

They also have a newer build date, but unfortunately this newer one is not for Android 11 https://sourceforge.net/projects/wsa-mtg/files/arm64/20230812/ Do you have any advice for me, which GApps to use?

Also another question, the lineage update doesn't install automatically using Configuration, System, Updater. So I'm installing manually using twrp. This takes lot's of time setting up all apps one by one, they install automatically, using my Google account, but have to configure most of them manually.

Is there any way to install an lineage update, without having to reconfigure all apps one by one?

I am currently using this method (maybe I need to skip some steps?):

Turn smartphone off.

Press Volume lower an power button at the same time.

Choose RECOVERY MODE (in twrp).

Wipe, Advanced Wipe, select Dalvik / ART Cache, System, Data, Cache.

Swipe to Wipe.

Back to main menu.

Install llineage-18.1-20230808-UNOFFICIAL-potter_security-patch-date_2023-08-05.zip

Add more zips MindTheGapps-11.0.0-arm64-20230323.zip

Swipe to confirm Flash.

Back to main menu.

Wipe, Format Data. yes, Blue button.

Reboot System.
[Android Q&A, Help & Troubleshooting] amn1987:
Look for processes using abnormally high CPU in FKM. If your device isn't rooted you can use ADB:

adb shell

top

The above can also be executed on-device in Termux (adb package has to be installed) or any other Terminal emulator with the help of Wireless Debugging permission. Disadvantage being that it only lasts until the device is rebooted.

I use Swift Backup to backup and restore apps including app data. Again it requires root. Always 100% reliable over the years unlike Migrate in which I had faced some issues in the past following which I switched to the former.

For a complete restore TWRP backup is great but I have read that it's not feasible in A/B devices.
[Android Q&A, Help & Troubleshooting] x0xb0x:
Like @amn1987 said you need to see exactly what processes are causing this.

In my case I used Termux which was also suggested here. Ran su command to get a root shell and then ran top -H (hint used from this thread) to see not only processes but the exact threads causing this.

Keep your phone in landscape for observations because top crops last columns on portrait. Observe for at least 10 minutes. If you see constant 40~70% CPU utilization then this is what's draining your battery. On a very old Redmi Note 3 Pro after disabling offending processes I am getting ~2% on idle with an occasional ~8% from SurfaceFlinger process.

In my case all problems were due to SystemUpdate thread which got alleviated by pm disable Chimera. I got even more courageous and disabled extra Google stuff. Used the script by @Tomo123 from here: https://xdaforums.com/t/arrowos-13-...cial-arrow-12-1.4345061/page-59#post-87306825

Be very careful which services you disable. You can put scripts inside services.d folder and Magisk will run them on boot. If you have problems you can edit the script with TWRP editor and e.g. switch back to "pm enable" If your phone refuses to boot due to a "pm disable" you previously did.

I suggest you do your "pm disable" stuff one by one followed by reboot + testing so as not to lose track.
[Android Q&A, Help & Troubleshooting] mmortal03:
Do what they said above, which is related to what I'd suggested to you in another thread, where you just check for the constant SystemUpdate spam using logcat. You can do it on the computer in the console with: adb shell logcat.

Yeah, you can do what they suggested above using app backup software. Another option is what's referred to as a dirty flash, where you just don't do the wiping or formatting of System or Data in TWRP when installing. All you do is just install the updated zip; that is, on top of what you already have (and skip the Gapps install because you'll already have it present). Of course, you need the same OS distribution and version (LOS 18.1) to do this. It isn't going to help you when going from LOS to crdroid, for instance. And always make a full backup beforehand, just in case!
[Android Q&A, Help & Troubleshooting] x0xb0x:
SwiftBackup Root for batch backup/restore of your apps between roms. Great stuff, use the free version it is fully adequate.
[Android Q&A, Help & Troubleshooting] cjdijk:
Thanks for the help.

@mmortal03: So if I understand you right. If a new version of Lineage or Mindthegaps has appeared, I only have to boot to twrp and use the Install zip option and then reboot and nothing else. It's obvious this only works when using an older version of the same rom. Not when switching from CrDroid to Lineage.

@x0xb0x: So if I understand you right. I can install Swift Backup (Google App store or apk from swiftapps.org). And create a backup. And after a fresh install as I described earlier. I just restore that backup and all apps and settings are as before. For example banking app activated and bluetooth devices connected.

Only one question remains unanswered. Does anyone have an updated GApps for Android 11. Maybe someone can create MindTheGapps-11.0.0-arm64-20230812.zip ? Why is there only a new version 20230812 for Android 12 and 13 on https://sourceforge.net/projects/wsa-mtg/files/arm64/20230812/ ?

I have created a logfile.txt using adb shell logcat>logcat.txt Hopefully someone can tell me why my battery is draining using lineage-18.1-20230808-UNOFFICIAL-potter_security-patch-date_2023-08-05.zip with MindTheGapps-11.0.0-arm64-20230323.zip I think it can be solved by installing a newer GApps.
[Android Q&A, Help & Troubleshooting] amn1987:
Swift Backup doesn't work for Google apps AFAICT. Even Chrome restore fails but it's not an issue thanks to Google Sync. It doesn't work for restoring data of banking apps that rely on SIM binding. They require additional re-verification. However if you dirty flash (wiping System only not Data) your apps and their data is preserved. Swift Backup isn't necessary but I always create a new backup in any case. Clean flash of course involves wiping the Data partition as well. Swift Backup has options to backup Messages, Call Logs, Wifi Access points login data etc.

I use NikGApps for an old device running A11 and it works great.
[G1 General] ValdreZ:
Alright well I know i'm not in a 3g area so let me begin by saying that. Also I have full 5 bars of signal but I can not connect to browser or the market. Any ideas on to why this is happening and how I can fix it??

Thanks!!
[G1 General] apatcas:
Just restart the phone
[G1 General] ValdreZ:
Didn't work, I should also point out that there is no data icon on the status bar next to the signal icon.
[G1 General] neoobs:
and you have the data plan? I would yell at T-Mobile support
[G1 General] chefgon:
I am also on Edge and my data connection has been out all day. I have full signal AND the data connection icon is there, but nothing will connect. Web Browser, YouTube, Android Market.. everything just times out.

I'm just west of cleveland, if that matters.
[G1 General] uberingram:
Interesting....I couldn't get the MySpace app to log in this morning and I can't get into market.

And I just confirmed that my browser is DIW.

Something is definitely up with the network.
[G1 General] Abbens:
this happened to me this morning. didnt show any signal nor 3g or edge. but sometime in the afternoon it fixed it self.
[G1 General] uberingram:
Well I'm showing full signal and 3G but no actual throughput.
[G1 General] Master Loon:
Call Tmobile. for some reson it happened to me this morning. ist seems as if they pushed people off the data plan they had and never reinstated them.
[G1 General] nickmgray:
I'm having the same issue. not data over edge or 3G.
[G1 General] Yos025:
You are right. I logged in to my tmobile account online and I had my old data plan remove... You guys just have to pic the G-1 data plan and done deal internet is back to my G-1
[G1 General] rantrav:
Ok guys I have the fix! I just got off the phone with t-mo and they said that the data package that we ordered when we ordered the phone was only a "free temporary" (only a trial) he said that they expire today, so he went ahead and added the data plan on for me, and had me restart the phone and everything would work!...RESULTS: I got a msg thanking me blah blah blah...and IT STILL DOESNT WORK, but at the same time it does take time for the data packages to start.

I am resetting my phone again.......and the new results are........nothing still
[G1 General] punkzanyj:
Give it some time.

I had the same issue, no data, this morning. I added back my plan, and within 2 hours I was back online, no big deal.