diff options
| author | 2023-09-07 12:44:48 +0000 | |
|---|---|---|
| committer | 2023-09-13 13:45:40 +0000 | |
| commit | 1bc7a32560e8b1485de98289fd35d6a3388c29e6 (patch) | |
| tree | 6aa7e46c59242da7670093cfd0ba4cea96641cf1 /libs/androidfw/ApkParsing.cpp | |
| parent | dead0f9ca81872e3a1ccd3e28b4cbea980f3b33c (diff) | |
Stop active MediaProjection callbacks before registering new callbacks
A race condition when starting a new mediaprojection session during an active one was caused by new callbacks being registered then immediately stopped when cleaning up callbacks from the previous session. Instead, existing callbacks should be stopped before new callbacks are registered.
Bug: 279417791
Test: atest FrameworksServicesTests:MediaProjectionManagerServiceTest#testCreateProjection_priorProjectionGrant
Test: smoke test on Felix & Tangor
Change-Id: I7c61f0da14f9be5c5a49792c9b336070b9a40e6e
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions