OSDN Git Service

IllegalStateException if apex is unavailable.
authorDario Freni <dariofreni@google.com>
Thu, 14 Feb 2019 15:37:54 +0000 (15:37 +0000)
committerDario Freni <dariofreni@google.com>
Tue, 19 Feb 2019 10:43:33 +0000 (10:43 +0000)
commita1c5f63126a670c42cc998a382dc5b174673c720
tree47ce71404beae2393d3377f727ad03750fbb52d7
parent3deb23fead536e1e4fa75b968acd425ad647bca1
IllegalStateException if apex is unavailable.

apexservice is expected to be active before zygote is run. In the
exceptional case it isn't we should fail fast and throw a clear error
message. The current version of the code would just assign "null" to the
mApexService variable, thus causing a null pointer exception later in
the code.

Bug: 124363450
Test: device boots.
Change-Id: I07361163c6e9efd392a633b30e85ca6be9f58ab3
services/core/java/com/android/server/pm/ApexManager.java