diff options
| author | 2025-02-26 13:55:32 -0800 | |
|---|---|---|
| committer | 2025-02-27 11:20:32 -0800 | |
| commit | 052dcaf2ec154fb1f1c54d68b1a5c9ed292b8238 (patch) | |
| tree | d040827927c2c4754bf819dd3fe7ce39046a96a1 /libs/androidfw/misc.cpp | |
| parent | f3a0cd48985ee541c89cd19409b8c2630215ad74 (diff) | |
Prevent VCN service from being registered twice
This patch is for migrating VCN registration from platform to
Tethering module. Becuase the system image has switched to use
mainline prebuilts, the mainline change cannot merged together
with the platform change. The plan is to update the mainline
prebuilt first and then merge the platform change. Thus there
will be a short window where ConnectivityServiceInitializerB
will be called twice to register VCN. This patch allows
ConnectivityServiceInitializerB to prevent the duplicate
registration.
This patch allows Tethering module to know whether VCN is moved
to mainline at runtime. If VCN is in mainline, Tethering
module (instead of SystemServer) will register the VCN service.
Bug: 385203616
Test: atest CtsVcnTestCases && FrameworksVcnTests
Test: verified registration on Android B and Android V
Flag: EXEMPT; no functional code change
Change-Id: If551167f4bafc39a592d8b325be3ceecf16f0b6e
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions