commit | 43d93da752030eda626bbdbb85b682006ee79c3b | [log] [tgz] |
---|---|---|
author | guangkui.ren <guangkui.ren@sunmi.corp-partner.google.com> | Thu Apr 11 16:55:31 2024 +0800 |
committer | Rubin Xu <rubinxu@google.com> | Tue May 14 09:32:01 2024 +0000 |
tree | b247d414b35b9e4f392f1e276cf7ed30db11df31 | |
parent | 1a1f9bf4315168629cb78206cd0211edbac9dd8a [diff] |
Fix potential crash issue in NonRequiredPackageDeleteObserver mLatch.notifyAll() will not help wake the thread which is blocked by mLatch.await, instead, it will cause system server crash. So, mark state as failed if any package is failed to be deleted, and let mLatch.countDown work until it comes to 0 and wake the thread blocked by await. Bug: 333845008 Change-Id: Ida1c3c128ddef376aaaacda1358717d0d4e9ca8b