You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Read the charger-maximum extras by their literal keys
BatteryManager.EXTRA_MAX_CHARGING_CURRENT/VOLTAGE are @hide constants:
BatteryService puts both into ACTION_BATTERY_CHANGED, but the symbols
are absent from the public SDK's android.jar, so referencing them fails
to compile. The extras themselves are readable (only the constants are
missing), so the reader uses the stable AOSP string keys instead. No
reflection is involved.
0 commit comments