Add gating, logging for PhoneStateListener's limit

Add gating via PlatformCompat and DeviceConfig and logging via
PlatformCompat to the limit instituted on per-process listeners

Fixes: 152074216
Test: atest CtsTelephonyHostCases
Change-Id: I4d6681d90705b68c3349f4124e434a29b50fd3a2
This commit is contained in:
Hall Liu
2020-03-26 19:09:30 -07:00
parent 2da50cfe33
commit ed6d6e69a8
5 changed files with 90 additions and 14 deletions

View File

@@ -1068,7 +1068,8 @@ public final class SystemServer {
t.traceEnd();
t.traceBegin("StartTelephonyRegistry");
telephonyRegistry = new TelephonyRegistry(context);
telephonyRegistry = new TelephonyRegistry(
context, new TelephonyRegistry.ConfigurationProvider());
ServiceManager.addService("telephony.registry", telephonyRegistry);
t.traceEnd();