Merge "Usage:fix arrayIndexOutOfBoundsException to aviod systemServer crash." into main am: 5e5902ff8f

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3119591

Change-Id: Ife50f5a0414c903a0da5c2502f5d8938d0ead332
Signed-off-by: Automerger Merge Worker <[email protected]>