OSDN Git Service

Do not stop idmap2d after OMS initialization
authorRyan Mitchell <rtmitchell@google.com>
Wed, 14 Aug 2019 17:25:26 +0000 (10:25 -0700)
committerRyan Mitchell <rtmitchell@google.com>
Wed, 14 Aug 2019 17:34:53 +0000 (17:34 +0000)
commitb8fbab621840616339a0831ddca07ce97a130cfc
treee9906a8c55982d023e723c12c7a6e70a77365fcf
parent5cd874d7922e0a793bb4d1305ef7b21edee13a7b
Do not stop idmap2d after OMS initialization

The OMS was calling stopIdmapService after OMS initialization finished.
This method was not setting the cached service binder to null and the
service binder was being reused when an overlay is enabled or disabled
within the 10 seconds the connection to the service is still opened.

This change no longer calls stopIdmapService and makes startIdmapService
and stopIdmapService private to IdmapDaemon.

Bug: 139307780
Test: enabled overlay within 10 seconds of OMS startup ending and
      observed state STATE_ENABLED.
Change-Id: I46b6a3631278c4dbdf5e5d373e085bac5186ed9a
services/core/java/com/android/server/om/IdmapDaemon.java
services/core/java/com/android/server/om/OverlayManagerService.java