commit | d0d1e688e1849c6e684a110f2e875cbd39af1dfb | [log] [tgz] |
---|---|---|
author | Robert Wu <robertwu@google.com> | Wed Dec 06 22:53:05 2023 +0000 |
committer | Robert Wu <robertwu@google.com> | Thu Dec 07 00:08:49 2023 +0000 |
tree | 32acad18567e15f38fe9ba789dde86f870f99e27 | |
parent | 0edd84716a9090da9a35837353ccb7344d5b8608 [diff] |
MIDI: Check MIDI permission before parsing XML MidiService is parsing the XML of installed packages. This is relatively expensive. This CL changes it so permissions and flags are checked first. This CL also adds additional null checks. Bug: 315203699 Test: atest MidiEchoTest Change-Id: I57e332f2afdcc54cc67986b8a8b2941ee1899c26