OSDN Git Service

Cleanup SystemReady in the network stack
authorChalard Jean <jchalard@google.com>
Mon, 1 Apr 2019 04:04:07 +0000 (13:04 +0900)
committerChalard Jean <jchalard@google.com>
Mon, 1 Apr 2019 04:32:25 +0000 (13:32 +0900)
commitd74219ba4a44657f8c0c0deb83032d211e4797e4
tree010e3f0b0ed93c9fdae79920a5e313b66fe7fb7c
parent78454f3c468e8ddf98c6f2e4f539bf90af34e0c2
Cleanup SystemReady in the network stack

The system server (in SystemServer.java) defines the boot
sequence, during which an event called SystemReady happens.
This corresponds to a time when critical system services
that are depended upon by other components in the system
server are ready to handle requests from their dependencies.
Some system services are listening to this event to defer
initializations that depend on the critical services.

Because the network stack is only started after SystemReady,
there is no way any NetworkMonitor may be started before
SystemReady. Remove the associated mechanism.

Fix: 129376083
Test: FrameworksNetTests
Change-Id: I071eeb10d0b7c4f71af6653d322c7b442b2cc7ee
packages/NetworkStack/src/com/android/server/NetworkStackService.java
packages/NetworkStack/src/com/android/server/connectivity/NetworkMonitor.java
services/core/java/com/android/server/ConnectivityService.java
services/java/com/android/server/SystemServer.java
services/net/java/android/net/INetworkMonitor.aidl