diff options
author | Lais Andrade <lsandrade@google.com> | 2021-02-25 14:03:46 +0000 |
---|---|---|
committer | Lais Andrade <lsandrade@google.com> | 2021-03-02 17:42:02 +0000 |
commit | de172a43749c3d5c499a6693a4782c96dfa5c862 (patch) | |
tree | 935a5f02395b70c8a9e431d90f56accfad751d00 /tools/aapt2/java/JavaClassGenerator.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions