Skip to content
Commit a1ea9ecd authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Check custom component names before aggregating BatteryUsageStats snapshots

If the lists of custom power components do not match, a crash will occur.
Instead of causing a crash, simply skip incompatible snapshots.

Bug: 196040329
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryUsageStatsProviderTest

Change-Id: I87ba605371a5f3119dcff33f6109e94ee46ab57d
parent 6fd7e85c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment