Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Lock BatteryUsageStats snapshot directory

From documentation:
"File locks are held on behalf of the entire Java virtual machine.
They are not suitable for controlling access to a file by multiple threads within the same virtual machine."

This means that we should use two locks: one internal to system server,
and another cross-process.

Bug: 216454829
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: I7689ab91a0759f99da700383647f4f8a1fae4362
parent a2afb955
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment