Catch IllegalArgumentException from PackageManager in InputMethodUtils
PackageManager APIs sometimes throw IllegalArgumentException. Failure
to catch them in InputMethodManagerService may result in crash looping
at an early boot stage.
This CL makes sure that InputMethodUtils can gracefully catch
IllegalArgumentException from PackageManagerService without causing
crash of system_server.
For normal situations, there should be no behavior change in this CL.
Fix: 218385726
Test: Manually verified as follows.
1. Build aosp_coral-userdebug and flash it w/ wiping the user data.
2. Build coral-userdebug and flash it w/o wiping user the data.
3. Make sure that the device still boots.
Change-Id: I58af03ec96103b60e20758558a92dd9408baab2f
2 files changed