Hello there,
This is the first time I've seen this issue happening, and have not seen anything related to it on the forum.
My 1ish year old Pixel 8 Pro (running GOS obviously) had very low battery percentage earlier today (2%), and when I plugged it to my usual charger, I noticed that the battery indicator had turned into a question mark instead of the usual percentage with lightning bolt symbol. The issue persisted with a different charger and cable combo despite the indicator returning to normal with nothing unplugged. Disabling USBC restrictions didn't do anything.
With the charger still plugged in, I rebooted the phone and the question mark was even on the BFU lockscreen. Surprisingly, when I unplugged the phone again (still BFU), the battery percentage was now 50% ! Upon unlocking I got a few crash reports for android.hardware.thermal-service.pixel ("ThermalHAL could not be initialized properly"). I looked on the internet, the few forum posts mentioning the battery-indicator-question-mark issue on Pixel phones were sparse and covered various models (Pixel 4–10). Most people said that they either got the battery replaced or that the issue fixed itself after a reboot or safe-mode reboot.
Next I rebooted the phone in safe mode, the issue was still happening. I installed AccuBattery to check some readings. First weird thing was that on first launch the app failed to accurately calibrate the total battery capacity (it guessed 3000mAh). And in the app itself, the readings made no sense (negative current, power consumption and temperature, and constant voltage).
While still in safe mode, I checked the battery diagnosis in system settings, and it had 100% life expectancy, 0 cycles, unknown manufacturing date and first used date (I checked those a few months ago and they were all defined and nonzero). I enabled developer mode and ADB USB debugging to run adb shell dumpsys battery, and the several values clearly made no sense (see attachment at the end).
When the phone is powered down and I plug it to a charger, a battery symbol with a question mark appears as well. When I unplug it, I once got a 4% read and a charging indicator (couldn't reproduce), otherwise it was the question mark inside battery symbol. Same thing with wireless charging.
I never fully charge my phone (80% charging limit enabled) and the battery percentage rarely gets below 20. My phone is not exposed to unusual meteorological conditions and it never had physical damage (few drops and always with a sturdy case on).
I'm keeping my phone off but charging right now because the battery was nearing 0%. Please me if it's a good idea given the messed up stats. I noticed that the clock got set in 12hr mode in-between reboots (don't know if safe mode causes that), see attachments for proof.
So, could this issue have links with GOS ? How to pinpoint whether it's a software or hardware failure ? Has anyone experienced something similar ? How to fix it ?
Screenshots of phone, adb command output and probably useless crash dump (no user data inside) are available here (password is my username).
TLDR my phone suddenly shows a question mark inside battery indicator when charging and other battery-related problems started happening.