At the moment (on Pixel), Google lets you run Battery diagnostics. Android 15 Beta 4 adds more advanced Device diagnostics that also let you see Battery status. You can access it from Settings > ...
How to Check Battery Health on Android with built-in settings, diagnostic codes, and apps to understand battery wear and ...
Android 15 Beta 3 prepares to add a new Device Diagnostics menu in the Settings app. The Device Diagnostics menu lets you run some manual tests and view your device’s battery and storage health. It ...