OSDN Git Service

Defer readSessionsLocked until system ready
authorTony Mak <tonymak@google.com>
Wed, 15 Feb 2017 18:40:03 +0000 (18:40 +0000)
committerTony Mak <tonymak@google.com>
Wed, 15 Feb 2017 19:44:08 +0000 (19:44 +0000)
commit606f8e79a210260a28b2629726740bf7e94c9f13
treeb12c80dda080b10e0c08ffd8d39944d869833770
parent288639860a8ab05cc7d09d3dc21b4224b3a832db
Defer readSessionsLocked until system ready

readSessionsLocked depend on DPMS, so defer it until all system
service is started

Fix: 34663223

Test: Manual
      1. Try to install an app and reboot before it is installed
         (so the session is persisted in a file)
      2. Observe that PackageInstallerService
         read the persisted session in onSystemReady and
         able to get the DPM instance.
      3. Observe play can read the persisted session

Change-Id: Ia14ed09db08fcf59189fa29293f0ac5066650942
services/core/java/com/android/server/pm/PackageInstallerService.java