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
{{ message }}
Repository navigation
Odin 3 Portal: ADSP firmware uses an 8000 mAh / 4.4 V battery profile instead of the Portal's 9130 mAh / 4.5 V #975
Device is an Odin 3 Portal (not in the dropdown, so I picked Odin 3).
The ADSP firmware shipped in qcom/sm8750/ayn/odin3portal/adsp.mbn (added in cf984e4,
"feat(o3p): add adsp and battery monitoring", unchanged on main as of da434a1) contains
the Odin 3 battery profile. The battery on the Portal is larger and charges to a higher
voltage, so under Armada:
the battery stops charging at ~4.4 V and reports 100% when it is really ~92% full
the reported capacity is ~7.9 Ah instead of ~9.3 Ah
the percentage is computed with the model of a different cell
Values from /sys/class/power_supply/battery on the same device, same charge, a few
minutes apart (Armada, then rebooted into the stock Android):
Both odin3/adsp.mbn and odin3portal/adsp.mbn in /lib/firmware only contain the 8000MAH profile string.
On Android the current firmware is on the modem partition (/dev/block/sde1, mounted
at /vendor/firmware_mnt), so an up-to-date adsp.mbn with the 9130MAH profile can
probably be taken from there.
Steps to reproduce
Charge the Odin 3 Portal to 100% in Armada (charge limit set to 100)
Reboot into Android and read the same files (adb shell)
Expected behavior
Armada uses the Portal battery profile (9130 mAh, 4.5 V) and charges the battery fully.
Actual behavior
Armada uses the Odin 3 profile (8000 mAh, 4.4 V), stops at ~92% real charge and reports it as 100%.
Additional comments
Not a safety problem as far as I can tell (it undercharges), but it costs ~8% of the
battery and makes the percentage inaccurate.
Possibly related to #940: with the stock Android firmware the charge current limit is charge_control_limit=7200000 (max 13000000), while under Armada constant_charge_current is 16000000 (max 16000000). The 16 A ceiling may come
from the same Odin 3 firmware.
Confirmations
I have read the project's README and documentation.
I searched existing issues and confirm this is not a duplicate.
I can reproduce this issue on the latest Armada release (or I noted the exact release above).
I attached relevant logs, screenshots, or a minimal reproduction if applicable.
Activity