summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceComposerClient.cpp
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2023-04-24 20:01:37 +0100
committer Jiakai Zhang <jiakaiz@google.com> 2023-04-25 11:34:38 +0100
commit3e524ef3aad56cbe1c879d7881ceb7c315b937d7 (patch)
treeb66f982d9d9f0b0e8598699e96c70c8dc76ab2ec /libs/gui/SurfaceComposerClient.cpp
parent8aedbf30dd4123c3050a040ce1c1b6e9d07b96ec (diff)
Move the package directory before deleting it.
This change avoids the race between installd and artd. Bug: 261431149 Test: - 1. Add a "sleep" before artd creating the files. 2. Add a "sleep" before installd moving the dir and deleting the dir. 3. Install an app. 4. Run "pm compile" on the app. 5. While "pm compile" is on "sleep", uninstall the app. 6. See the compilation failed and the failure handled properly. 7. See the uninstallation succeeded and the package dir no longer present. Test: - 1. Add a "sleep" between artd invoking dex2oat and moving the files. 2. Do step 2-5 above. 3. See the same results. Ignore-AOSP-First: ART Services Change-Id: I4583943aeeb03915f76a5d66f44eff7347f8db14
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions