Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3e524ef3 authored by Jiakai Zhang's avatar Jiakai Zhang
Browse files

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
parent 8aedbf30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment