yashsingh1/xdaforums huggingface dataset:
[Google Pixel 4 XL Questions & Answers] dhorgas:
Here are the results of the repeat of my test from last night. I did the same exact thing as my previous post. Phone charged to 100%, bunch of running apps, turned off Bluetooth after putting S3 Classic on a charger, and flipped the phone face down on the night stand. Approximate drain per hour overnight was about 0.3% per hour. I'm going to do a repeat of the test again with the phone face up but I'm quote certain at this point that the drain is related to Bluetooth, Soli Motion Sense and Ambient Display.

A recent review by The Guardian of the Pixel 4 XL in fact noted an issue with Soli Motion Sense in that anyone who places their phone on a night stand next to their bed the screen never turns off. Soli sensitivity bubble is roughly 60cm or about 2 feet, which means the phone never actually sleeps because you're always "near by".
[Google Pixel 4 XL Questions & Answers] Infestor:
I tried to replicate your approach. Fully charged, Bluetooth off and flipped over. Still lost 1% per hour and I have a Bluetooth wakelock even though it is turned off.
[Google Pixel 4 XL Questions & Answers] dhorgas:
That is very peculiar. Can you tell me what Bluetooth devices you use? Also, do you have Wi-Fi and Bluetooth Scanning enabled or disabled?

As an aside, I ran another test last night where I left Bluetooth enabled and flipped the phone upside down, and the average drain was 0.6% overnight. Much higher than my prior tests, though still significantly lower than leaving the phone screen up and Bluetooth on.
[Google Pixel 4 XL Questions & Answers] Infestor:
I forgot to turn off scanning - will do for the next test. The only Bluetooth device that is usually always connected is a Forerunner 935 sports watch, however all types of notifications on the watch or other "smart" watch features are off.
[Google Pixel 4 XL Questions & Answers] dhorgas:
You definitely have to disable scanning, otherwise Bluetooth will keep on waking up.
[Google Pixel 4 XL Questions & Answers] Infestor:
Yeah I'll keep scanning off for good now - what's the point? If I want Bluetooth and Wifi off they should be really off. I haven't been in any situation where Bluetooth and wifi were off but I needed the scanning for improved location.
[Google Pixel 4 XL Questions & Answers] Paz9:
Did you disable anything? Or just simply turn off Bluetooth and face down?
[Google Pixel 4 XL Questions & Answers] dhorgas:
Wi-Fi and Bluetooth scanning is disabled. Other than that, I just turned off Bluetooth and flip the device face down on the nightstand.

As an aside, I think there may be a bit of built in battery optimisation in the latest patch. I noticed yesterday that my drain after the patch seemed to be a bit less aggressive. Last night I left the phone with Bluetooth enabled, face down of course, and here are the results this morning.
[Google Pixel 4 XL Questions & Answers] evocalante:
Why not have it on the charger while you sleep?
[Google Pixel 4 XL Questions & Answers] RoccoN4:
Was just about to ask the same thing? I leave mine on a slow wireless charger all night (10:30-5:15). 100% until I get it back on the charger before bed. Some of you look like there is a rouge app keeping your phones up all night tho.
[Google Pixel 4 XL Questions & Answers] ilal2ielli:
Because longevity of the battery will be better if it's not always at 100%.
[Google Pixel 4 XL Questions & Answers] dhorgas:
Yes and no. All modern electronics have integrated circuits that regulate overcharging so there isn't too much risk of battery degradation. In fact, it's much more important to not drain and recharge your battery. LiPo batteries do well when you keep topping them up. It's only when you're storing your device for a long time that you want to maintain a charge level below 80%. I actually keep my device on a charger at night, but standby drain is critically important to me because it helps me understand just how the battery will be draining during the times I'm not using my phone. Doing this test during the night is a good, controller way to figure things out. For instance, now I know that when I want to maximize standby life, my phone has to be face down on the table.

Of course all of this would be a moot point has Google just opted to put a decent size battery in the XL phone.
[Google Pixel 4 XL Questions & Answers] jduenes:
So I was having the same wakelock issue and tried some of the things mentioned here. I turned off the motion sense and it fixed it for me. My standby has actually been the best it's ever been. I'll attach some screenshots.

Hopefully they attach correctly.
[Google Pixel 4 XL Questions & Answers] bobby janow:
I have always had motion sense on and only got the wakelock once. I rebooted and it was gone. I don't think that's what it is since I still have motion on and it hasn't happened again.
[Google Pixel 4 XL Questions & Answers] jduenes:
I tried rebooting mine multiple times over a few days and it never went away. It went away after I turned off motion sense. It could be a coincidence, that’s just what did it for me. I’ll keep checking it. Sometimes it would go away for a few minutes then be back the rest of the day when motion sense was on. Now it hasn’t come back.
[Google Pixel 4 XL Questions & Answers] bobby janow:
That's interesting. However, I think if motion sense was keeping the phone awake 24/7 it would be pretty well known by now and a definite bug. I really like motion sense and would not want to give that up.
[Google Pixel 4 XL Questions & Answers] jduenes:
I do enjoy it as well. One other thing I noticed is that since that wakelock is gone, my screen usage is down. My screen time would go up while I'm not using my phone. I would go into work while I had maybe 1.5 hours of screen time. Later in my shift I would check my phone and stats curiously and I would have 2.5 or so screen on time and I hadn't taken my phone out of my pocket.

It could also be from motion sense but I don't know. I move around a lot at my night job. So I am going to try some more testing on that front. For now, my screen time is more accurate with my actual usage.
[Google Pixel 4 XL Questions & Answers] bobby janow:
That's really odd. When I had the wakelock the phone never went into deep sleep. Awake with screen off was 100%. As I said something must be off otherwise this would certainly have been reported and documented.

I see you're using BBS. Did you check alarms when you had the problem? I wonder if an app is conflicting with motion. It's new so it's possible. You might want to give it another shot.. and bring your charger just in case. Lol
[Google Pixel 4 XL Questions & Answers] dhorgas:
Seeing that this is a low-volume phone and not all buyers are savvy enough to report issues or even willing, and the fact that the issue may be intermittent, I would not dismiss the possibility.
[Google Pixel 4 XL Questions & Answers] bobby janow:
That's true but we're on XDA now and every hiccup is reported here ad nauseam. And besides users we have some mods and devs that are very active and that have the device. No, I don't believe this is a widespread issue although there are some reports.
[Google Pixel 4 XL Questions & Answers] c_86:
Still having issues.
[Google Pixel 4 XL Questions & Answers] NicklasRaab:
I'm on the P4XL.

Don't have a solution, just wanted to add on that I too experience the same results. Installed BBS with permissions via ADB.

I see DIAG_WS 100%. No sign of even measuring deep sleep so far.

Coming from a two year old pixel 2 (smaller one), I'm still happy with the battery life. But yeah, it's weird that the phone won't go to deep sleep during the night (or other long periods of time when not using it).
[Google Pixel 4 XL Questions & Answers] THRUSTer:
This is very misinformed. Lithium ion batteries perform best in the 40% - 80% range. Leaving it above that is degrading.
[Google Pixel 4 XL Questions & Answers] sic0048:
I have a Pixel 3a XL and the phone supports "Battery Idle" mode. I would be shocked if the Pixel 4 didn't support this as well.

What is Battery Idle Mode? Well it simply means that when the battery is fully charged and the phone is still plugged in, the phone simply bypasses the battery and pulls power directly from the power source. So the battery is neither charging nor discharging when the phone is plugged into power and the battery is fully charged. It's basically disconnected. Therefore there is zero harm in leaving your phone plugged in and fully charged far as long as you like.

Edit - I should note that the battery icon will still show the lightning bolt "charging" icon even when the phone is in battery idle mode. The only way to really see it in battery idle mode is to use an app where you can see the power consumption. If the battery is being discharged, the numbers will be negative. If the battery is being charged, the numbers will be positive and high (like 700mA or more). If the phone is in battery idle mode, the monitor will show the battery being "discharged" but show a small positive current which is just the actual amount the phone is drawing from the power source (generally 11mA on my phone).
[Google Pixel 4 XL Questions & Answers] Jz5678910:
Had this same issue. Followed another person from this thread and used "Naptime" and now it's sleeping no problem. I'm not rooted either so it works with a few adb commands and a reboot.
[Google Pixel 4 XL Questions & Answers] leony74:
I am returning my 2nd pixel 4xl within a period of 15 days. both the phones had same problem of not deep sleeping.

Last night while I was sleeping the phone drained almost 15 percent in 8 hrs. this is Crazy.
[Google Pixel 4 XL Questions & Answers] RoccoN4:
What apps you have running? Is it possible that an app is not behaving that you had installed on both phones? I haven't had any sleep issues on my end to really look into this issue. Weird that both phones had the issue. Are you going to try a 3rd?
[Google Pixel 4 XL Questions & Answers] leony74:
I dont think so, I have a note10 plus with same apps and no issues with it.
[Google Pixel 4 XL Questions & Answers] keijikage:
Turning off motion sense got rid of my DIAG_WS wakelock immediately.
[Google Pixel 4 XL Questions & Answers] bobby janow:
Turn it back on. Bet it's still gone.
[Google Pixel 4 XL Questions & Answers] NicklasRaab:
I too have a bad case of battery drain on my pixel 4 xl. Loosing about 15-20 percent during the night.

At first I too had the DIAG_WS lock. Rebooted the phone and haven't seen it since.

Last night I tried putting the phone in flight mode. Lost about 3-4 percent. Will try tonight in flight mode with AOD. If I get the same results then it must be an app right?

The step after that is boot up in safe mode I guess?

Having a hard time reading the logs in Better Battery Stats. The wake-lock is usually all blue more or less.

In the Android battery settings the top three are screen, operating system and Android system. In general.

Any thoughts welcome :)
[Google Pixel 4 XL Questions & Answers] prgopala:
I am in the same boat. I too had the DIAG_WS wakelock which is gone now by blocking it/rebooting. But still the battery life is not good. I would say below average. BBS does show that the Awake(Screen off) has a more than acceptable value even when the phone is doing nothing and sitting on the table.

Kernel wakelocks points to powermanager* wakelocks. I have no clue what it is and whether it is normal.

Partial wakelocks do not show anything that is keeping device awake for long.

When i had the phone , the battery life on the very first day (this was after restoring all my apps and setting up the phone like my previous phone) was awesome, more than 8hours of SOT. But starting the next day i have never had SOT anywhere close to that. Not even half. I might spend some time digging deeper to find if its an app or any process.
[Google Pixel 4 XL Questions & Answers] jamgam:
Now I'm getting the following wakelocks. Dropped from almost 100% to 66% overnight

IPA_CLIENT_APPS_LAN_CONS

IPA_WS

and one other I cant remember

The only mention of these I can find is in an xda thread on galaxy s10+ I found here

The regular battery monitor said google ran all night. 8 hrs and 40 minutes

I really want to like this phone but it's driving me crazy
[Google Pixel 4 XL Questions & Answers] novas78:
No problem here.
[Google Pixel 4 XL Questions & Answers] pa.pn2:
No problems here on elementalx kernel
[Google Pixel 4 XL Questions & Answers] niko26:
"DIAG_WS" kept my pixel xl 4 stock with magisk awake as well.

Tried disabling soli, AOD, wifi, Bluetooth. Rebooted. Nothing helped. The okay solution was to disabling background scanning for wifi and Bluetooth.

That's weird because I know for sure this issue has not been there all the time.

Anyway... Reenabling the device does not show the issue again. Weird. As long as the "workaround" (toggling the background wifi Bt option) still works.... I'm at least ok.
[Google Pixel 4 XL Questions & Answers] niko26:
For others:

You can disabling background scanning for wifi and bluetooth in the location setttings!
[Google Pixel 4 XL Questions & Answers] bobby janow:
Just rebooting it goes away with nothing else needed.
[Google Pixel 4 XL Questions & Answers] backslashV:
It's still there even after disabling wifi and Bluetooth scanning.
[Google Pixel 4 XL Questions & Answers] niko26:
Rebooting disables the option? Not true for me.
[Google Pixel 4 XL Questions & Answers] bobby janow:
Rebooting gets rid of the wakelock.
[Google Pixel 4 XL Questions & Answers] hyborian:
I don't use pixel, but my custom rom allows blocking wakelocks, and DIAG_WS is one of those blocked. Try it if you can find a Kernel that allows blocking.
[Google Pixel 4 XL Themes, Apps, and Mods] SemonCat:
Hi, Everyone,

Pixel 4 remove fingerprint sensor, but most of app did not update to newest biometrics api yet.

I build this module to proxy old fingerprint api to biometrics api .

You can use FaceID just like fingerprint.

Here is github link,

You should build apk by your self, it much safer.

but if you want buy me a coffee, here is google play link.

Hope you guys like it.

QA

Q. Is this module safely?

A. First, this app didn't have network permission. It can not send anything out.

Fingerprint api and biometrics api just receive authenticate request from app and tell app is authenticate success or not.

App will not sent any your data to those api.

Q. Magisk module

A. Use pure magisk to implement this feature need much work. I will working on it but it won't release soon.
[Google Pixel 4 XL Themes, Apps, and Mods] AjaySp:
This is actually a great idea until all the apps get the face is support. But how is the app i dont see any reviews on play store to?
[Google Pixel 4 XL Themes, Apps, and Mods] eg1122:
It works, I just tried it. That being said...I won't use it because of the security flaw in face unlock. Great app, great idea, Google needs to fix things on their end.
[Google Pixel 4 XL Themes, Apps, and Mods] ZeroKool76:
Wait, what? So the only way it can be published here is if he offers a free version as well? That's fukd up. I thought the idea of this site was to help users, which i believe he did. #f*ckxda and their ****ty rules
[Google Pixel 4 XL Themes, Apps, and Mods] AjaySp:
Ed exposed always crashes how are you guys even using the module
[Google Pixel 4 XL Themes, Apps, and Mods] eg1122:
https://xdaforums.com/pixel-4-xl/how-to/xposed-discussion-thread-t3992607
[Google Pixel 4 XL Themes, Apps, and Mods] wgrant:
This is only xposed? Would be great if magisk would load it.
[Google Pixel 4 XL Themes, Apps, and Mods] Ferriolom:
Yeah if you could make a magisk module I'd buy
[Google Pixel 4 XL Themes, Apps, and Mods] superchilpil:
Excuse me? Do you not even understand the reasoning behind this? It's to prevent people from using this site to advertise their paid apps, using XDA to make money off of THEIR userbase.

How would you like it if every rom was paid? If every root method was paid? This community is about giving to each other, not for profit.

I do believe in donating to those who deserve it don't get me wrong, but that's not what this community was founded upon.

If you don't like the rules then you're welcome to leave.
[Google Pixel 4 XL Themes, Apps, and Mods] ZeroKool76:
Well then, that's up to the moderators to actually do their job and not to enforce an absolutist mentality. Personally, whether someone advertises their paid app here or somewhere else, the bottom line is to help the end user. So, by saying you need to post a free version actually inhibits quite a dew devs from sharing their work here, for that exact reason. Same goes for posting TG links. This site is supposed to help people as a whole, not dictate what they determine to be viable outlets. Leave that to the users to decide. I cant tell you how many well known devs are sick and tired of xda and their antiquated rules. Which is a shame, cuz they are actually pushing good devs away.
[Google Pixel 4 XL Themes, Apps, and Mods] c_86:
Would get in a heart beat if it was magisk. I don't use exposed nor do I want to.

Please make for magisk and I'm all over this. Would even pay double!
[Google Pixel 4 XL Themes, Apps, and Mods] dubt17:
This is great! Works perfectly
[Google Pixel 4 XL Themes, Apps, and Mods] mitchdickson:
You're looking for xda-users.com
[Google Pixel 4 XL Themes, Apps, and Mods] aramisathei:
Thanks for putting this together. It's great!
[Google Pixel 4 XL Themes, Apps, and Mods] Thibale:
I'd never trust such an app
[Google Pixel 4 XL Themes, Apps, and Mods] SemonCat:
If you have any concern, you can review source code and build apk by your self.
[Google Pixel 4 XL Themes, Apps, and Mods] Thanos:
Paid apps are not permitted.

However, there is a paid software section but posting there requires that certain criteria are met.

Details:

https://xdaforums.com/showthread.php?t=931872
[Google Pixel 4 XL Themes, Apps, and Mods] geekasso:
You can install xposed module for magisk:

https://xdaforums.com/xposed/unofficial-systemless-xposed-t3388268

Source:

https://www.xda-developers.com/xposed-framework-hub/

** Update: just tried it and our device is not (yet) supported. **

I thought it was a great idea and jumped the gun. Didn't realize it was for xposed only when I bought it. There are no refund options.
[Google Pixel 4 XL Themes, Apps, and Mods] SemonCat:
You can refund by Google play or sent me your recipe Id.

And your device is not pixel 4?
[Google Pixel 4 XL Themes, Apps, and Mods] geekasso:
I'm on a Pixel 4XL. Google Play is not giving me a refund option. I will PM you order ID.
[Google Pixel 4 XL Themes, Apps, and Mods] Morgrain:
Don't forget to add the module to Edxposed. Just installing it is not enough.
[Google Pixel 4 XL Themes, Apps, and Mods] aramisathei:
Topjohnwu's fork contains version 1.1.1 for people who haven't been able to find it.
[Google Pixel 4 XL Themes, Apps, and Mods] NoobTW:
deleted
[Google Pixel 4 XL Themes, Apps, and Mods] cougar11:
Anyone know why fingerface stopped working.... Currently using v1.1.1
[Google Pixel 4 XL Themes, Apps, and Mods] Chance Ill:
Version 1.1.0 works just fine. Maybe you should downgrade.
[Google Pixel 4 XL Themes, Apps, and Mods] aramisathei:
1.1.1 works fine too.

Fingerface stopped working for me a while back as a result of a backend change for exposed or possibly due to a security update.

I don't really remember.

Either way, I updated exposed to the new version it worked fine.
[Google Pixel 4 XL Themes, Apps, and Mods] cougar11:
Thank you both... Started from scratch.... Got it working again
[Google Pixel 4 XL Themes, Apps, and Mods] drup88:
Could those who are currently running latest version of finger face 1.1.1, confirm the below details so I can troubleshoot?

Magisk ver

Magisk manager ver

EdXposed ver

EdXposed manager ver

Riru ver

EdXposed method (yahfa or sandhook)

Alternatively their verbose log in xposed.

Mine below, but can't get it to work (p.s anyone else's log 300kb? I remember it should only be 30kb =S)
[Google Pixel 4 XL Themes, Apps, and Mods] jljtgr:
For me, one reboot the log may be small, the next it may be big. Race conditions, maybe.

Anyways...

Android ver QQ1B.200205.002 (Feb)

Magisk ver 20.3

Magisk manager ver 7.5.1

EdXposed ver 0.4.5.5_beta YAHFA

EdXposed manager ver 4.5.4

Riru ver 19.7

I seem to remember reading that this module was sensitive to the EdXposed version the most.
[Google Pixel 4 XL Themes, Apps, and Mods] Kris Chen:
The Edxposed version need to be updated to v4.4.6.1(4510)(YAHFA) !
[Google Pixel 4 XL Themes, Apps, and Mods] jubeilecu:
Amazing job bro!!

I have installed few days ago and all works properly!! Thanks a lot for your work!!

Regards.
[Google Pixel 4 XL Themes, Apps, and Mods] trainfire:
A bit jealous about this app/module tbh. Is it possible to use it on a different phone? Or is there an alternative version somewhere? I currently have Mate 20 Pro
[Google Pixel 4 XL Themes, Apps, and Mods] jljtgr:
It redirects the older fingerprint API to the new Android 10 biometric API.

If another phone has Android 10 and a face-unlock that the biometric API deems secure enough, it should work the same as a Pixel 4. If the face-unlock isn't considered equally secure, the biometric API might not use it. I have no idea what would happen for vendor specific implementations and/or lower Android versions. Probably wouldn't work.
[Google Pixel 4 XL Themes, Apps, and Mods] peter_dk01:
Will this work for android 11 too?
[Google Pixel 4 XL Themes, Apps, and Mods] gyuuuu:
android 11 beta3 support plz
[Google Pixel 4 XL Themes, Apps, and Mods] Haylander Landim:
Android 11 work?

I have Magisk (21.3), EdXposed (0.5.0.6), Fingerface (1.1.0) enabled, however I cannot see it working in an application whatsoever, everyone informs me that my device does not support fingerprint Android 11, November update ... Could someone tell me how to adjust?
[Google Pixel 4 XL Themes, Apps, and Mods] jljtgr:
Works fine for me.

Android 11: RP1A.201105.002

Magisk: 21.1 (21100)

Riru - Core: v21.3

EdXposed: v0.5.0.6-android_r (4561) (YAHFA)

Fingerface: 1.1.1
[Google Pixel 4 XL Themes, Apps, and Mods] Haylander Landim:
which application are you testing and successful with?

I installed exactly everything like you, same versions

using https://play.google.com/store/apps/details?id=com.appbusters.robinkamboj.senseitall

fingerface sensor option, not work
[Google Pixel 4 XL Themes, Apps, and Mods] jljtgr:
Works fine for me... I would screenshot it, but the dumb app blocks screenshots and blacks-out video recording.

I also tried this with success: https://play.google.com/store/apps/details?id=com.rhkr8521.fingerprinttest
[Google Pixel 4 XL Themes, Apps, and Mods] Haylander Landim:
I had already tested this, it also doesn't work. I will reinstall the system and redo the entire root procedure ...

The funny thing is that I have the EnablerSoli module in magisk and it works well, it looks like edXposed that doesn't work
[Google Pixel 4 XL Themes, Apps, and Mods] jljtgr:
The very first time I used FingerFace, almost a year ago, it didn't work the first time. I switched from SandHook to a little known YAHFA version and it worked. I thought that was the fix until people claimed that SandHook worked fine. As superstition, I still use YAHFA and it still works... but I imagine that it's more complex than that. I don't think you need to wipe your phone... I think you might just need to experiment more with EdXposed and the associated Riru packages in Magisk.
[Google Pixel 4 XL Themes, Apps, and Mods] Haylander Landim:
Got it!

I removed EdXposed, Magisk and restored the boot.img.

That done:

Installed:

Magisk (Canary 21101)

** restarted the device

MagiskHide Props Config (Latest version)

Systemless Hosts (Latest version)

** restarted the device

Riru (Riru - Core) (21.2)

** restarted the device

Riru - EdXposed (0.5.0.6-android_r (4561) (YAHFA)

** restarted the device

HiddenCore Module (Latest version)

Fingerface (1.1.1)

In MagiskHide I selected, all the way around, Google apps, searching for "google" in the search field

In EdXposed I enabled App List Mode and Pass SafetyNet

At the moment Fingerface works perfectly and SafetyNet has passed!

@jljtgr, thank you for your attention!

Video