diff options
| author | 2023-03-16 17:05:26 -0700 | |
|---|---|---|
| committer | 2023-03-20 10:17:35 -0700 | |
| commit | 2e62db34788510ad0fa439b4355508d6c161b8d7 (patch) | |
| tree | d1057788c733c6e63317f7d75eb8d900ce960e0c /libs/androidfw/ObbFile.cpp | |
| parent | 77fd0393042fcb7543d07f286e1cb92c3b5ff45c (diff) | |
Drop multi-window mode requests in locked task mode
It used to throw UnsupportedOperationException, but in cases when the
WCT/transition request is queued, it ends up crashing system_server.
Since locked task mode is not something WM shell controls, WM shell
can't fully prevent from setting multi-window mode in locked task mode.
Therefore we shouldn't crash any processes for that.
We should also extend this no-throw principle to other scenarios where
WM core can't fulfill certain operations in WCT for some internal states
of which WM shell doesn't have full control. I didn't find other such
throws in current code base in a quick check, so this CL only changes
this one.
Use warning to match the other logging level in the original commit
a9201bcfee70f455dad10d0a66427af08ec5148a where this throw was added,
also for the reason that WM shell can't fully prevent it from happening.
This CL also reverts 462b8f5f479e59c6725b57c90fc975cdf835208a because it
was made to avoid throwing this UOE in a particular situation.
Bug: 263492303
Test: Build and boot.
Change-Id: I188abae4b1992ba66fe31eadc886b2c0586640f9
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions