Include battery info debuglog.

This commit is contained in:
Greyson Parrelli
2026-02-09 11:39:37 -05:00
parent c9bd81d332
commit 2c6524f6c0
3 changed files with 23 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ class LogSectionSystemInfo : LogSection {
Telecom : $telecomSupported
User-Agent : ${StandardUserAgentInterceptor.USER_AGENT}
SlowNotifications : ${isHavingDelayedNotifications()}
Battery Level : ${DeviceProperties.getBatteryLevel(context)}% (charging: ${DeviceProperties.isCharging(context)})
IgnoringBatteryOpt: ${PowerManagerCompat.isIgnoringBatteryOptimizations(context)}
BkgRestricted : ${if (Build.VERSION.SDK_INT >= 28) DeviceProperties.isBackgroundRestricted(context) else "N/A"}
Data Saver : ${DeviceProperties.getDataSaverState(context)}