OSDN Git Service

Fix job scheduler crash due to uninstall race
authorChristopher Tate <ctate@google.com>
Wed, 5 Oct 2016 21:45:46 +0000 (14:45 -0700)
committerChristopher Tate <ctate@google.com>
Wed, 5 Oct 2016 21:45:46 +0000 (14:45 -0700)
commit652c5ad5167b36735bd04b38b9b904d7bdf8033e
tree0f2a1707b197c060ae2537a084198408d09931ee
parente8ebe112092f2fc37f467bea73147a45a10057a5
Fix job scheduler crash due to uninstall race

It's possible to get a PACKAGE_CHANGED broadcast well after the
package has actually been uninstalled outright because of broadcast
delivery latencies.  Understand the exception that might be thrown
when asking for package info in such cases, so we don't crash the
Android runtime.

Bug 31865735

Change-Id: I69b2678f0f724fc731aa48fed7af58ce60d3c21c
services/core/java/com/android/server/job/JobSchedulerService.java