[TIF CTS] Fix NEP in TvInputManagerService
In onServiceConnected, userState.serviceStateMap.get(mComponent) returns null because some components are removed in buildTvInputListLocked. The service state should not be removed there because: 1. The service may be bound and there may be existing sessions 2. ActivityManager restarts crashed service automatically and it causes NPE. The original issue 204469566 can be resolved by calling updateServiceConnectionLocked() Bug: 291759647 Test: atest CtsTvTestCases Change-Id: Ia7d8b7ce5ea3d2d4d9dcd86ffc1ecfaf2fa6c386
Loading
Please register or sign in to comment