Explicitly reference system services where possible (2)
This is the second part of a multi-part change in refactoring how system services are referenced and started in system server. System services bundled in services.jar should be explicitly referenced wherever possible. This avoids ambiguity about where the service is defined and what guarantees are made at runtime for its inclusion, and also provides an explicit reference that R8 can use to keep associated services. This change is effectively a no-op, as we still keep all SystemService derivations. However, it will make it possible in a future update to relax this keep rule and depend on build-time system feature defines to gatekeep service references. A follow-up change will tighten the semantics for starting services via the string-based class reflection lookup. Bug: 203143243 Test: m + validate services.jar identical except for strings Change-Id: Idd54917279268af9c1a3b4ab9ca3737e7ed5ff14
Loading
Please register or sign in to comment