d4rken-org / d4rken-org/amply

Incorrect Current/Wattage Parsing and Unread Cycle Counts on Samsung Galaxy A15 5G (MediaTek Dimensity 6100+)

Open
#92 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
38
Forks
0
Avg merge
2h 19m
Merged PRs (30d)
27

Description

On the Samsung Galaxy A15 5G running One UI, Amply reads charging current as 0W (or 1mA), and charge cycles are not displayed.

Inspection via dumpsys battery reveals that the device's MediaTek power management driver outputs current now directly as a 3-digit milliamp integer (441) rather than standard microamps muA, e.g., 441000).

Because the app assumes microamps, dividing 441 by 1,000,000 results in approx 0.0004A, which rounds down to 0W.

Additionally, total cycle usage is logged under Samsung's custom MediaTek key mSavedBatteryUsage: [54327] (representing 543.27\% accumulated usage / ~543 cycles) instead of the standard Android HAL cycle_count integer, causing cycle reporting to fail.

Please add MediaTek unit scaling (mA vs muA) and mSavedBatteryUsage fallback parsing for this device model.

Image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the app's battery-data parsing entry point and compare its handling of dumpsys battery current values with the Samsung Galaxy A15 5G output described here. Trace the existing standard Android HAL cycle_count parsing, then verify that the mA reading and mSavedBatteryUsage value produce the expected wattage and cycle count.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.