Skip to content
Commit d9701f80 authored by Kweku Adams's avatar Kweku Adams
Browse files

Clean up ComponentController and fix some bugs.

1. Only log a package-not-found error if the user has been unlocked. If
   the user is still locked, it's reasonable to get a package-not-found
   exception for persisted direct-boot-unaware jobs.
2. Actually log the cache for debugging purposes.
3. Only update the package info for the user the package changed in.
4. Also update the cache when an app is updated.
5. Clean up the cache when an app is uninstalled or a user is removed.
6. Make sure locked methods are annotated and named correctly.

Bug: 141645789
Bug: 184346794
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest CtsJobSchedulerTestCases
Change-Id: I570fe874ec3491f61c7eaf1d1c964a7dce9d7998
parent 062dde5e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment