diff options
| author | 2023-06-20 20:16:46 +0000 | |
|---|---|---|
| committer | 2023-06-21 04:49:34 +0000 | |
| commit | 0aea1f3800edf779e97f7e36be095e1d9d39b768 (patch) | |
| tree | db0fa1533d6943234de4c6791e3c1d992d0ba1ef /libs/hwui/FrameInfoVisualizer.cpp | |
| parent | 01158d6e178a922da415d6fc34a787973c1fb1e2 (diff) | |
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
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions