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

Skip to content
Commit 0aea1f38 authored by Massimo Carli's avatar Massimo Carli
Browse files

Allow DiskRead ThreadPolicy in LetterboxConfigurationPersister

The LetterboxConfigurationDeviceConfig needs to access the
file with the current reachability position once when the
device boots. Because DisplayThread uses allowIo=false
accessing a file triggers a DiskReadViolation.
Here we use StrictMode to allow the current thread to read
the AtomicFile once in the current thread restoring the
original ThreadPolicy after that.

Fix: 286620565
Test: Run `atest WmTests:LetterboxConfigurationDeviceConfigTests`

Change-Id: Ia358de8c817eea987547c82df0ea8612591c0600
parent 01158d6e
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