Skip to content
Commit d675f51c authored by Ruben Brunk's avatar Ruben Brunk
Browse files

Change recovery logic for services bound by VrManagerService.

- On AIO VR devices (where live VR services are required to render
anything), reconnect to the VrListenerService and VR compositor service
indefinitely and never leave VR + persistent mode.
- On smartphone VR devices, do not reconnect if the VrListenerService
dies for any reason, instead immediately leave VR + persistent mode.  If
the VR compositor dies, reconnect a limited number of times.  The
expectation is that the VrListenerService process will detect the
compositor crashes separately (via a shared service binding), and chose
to either attempt to fall back to a previous render path or simply
propagate the crash and leave VR mode entirely.
- Update dumpsys logging to include lifecycle events from the
VrListenerService and VR compositor service.

Bug: 66967700

Test: Manual test with VrCore APK by logging when the VR services are
connected and killing each VrCore process from ADB shell.

e.g.:
- Repeatedly kill the VrCore main process.
- Repeatedly kill the VrCore compositor process.
- Repeatedly kill both processes.

Change-Id: I8952b872b39102a601f66bc6624fc0ad92ca0f30
parent c765c2c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment