commit | de172a43749c3d5c499a6693a4782c96dfa5c862 | [log] [tgz] |
---|---|---|
author | Lais Andrade <lsandrade@google.com> | Thu Feb 25 14:03:46 2021 +0000 |
committer | Lais Andrade <lsandrade@google.com> | Tue Mar 02 17:42:02 2021 +0000 |
tree | 935a5f02395b70c8a9e431d90f56accfad751d00 | |
parent | f48c8fc64ab6c8acfc8c662ef46ee2a15b58da53 [diff] |
Fix crash when using VibratorManagerService before system ready VibratorManagerService depends on some system services like Vibrator, AudioManager and InputManager, which can only be initialized onBootPhase. Move only the initialization of these services to the onBootPhase and allow the VibratorManagerService to be used before that without crashing. Fix: 180699899 Test: VibratorManagerServiceTest Change-Id: Id6406373d7a7f15265aa6c1ce5b7ef39bb949eed