Android Things LTS v1.0.1 (4795405)
Handle IAE in deletePackageAsUser

Root cause:
If user click free up button twice continully, the frist
clear data thread is running at background. When second clear data
thread is running, it will delete the same package that was deleted
by first thread. So StorageManager throw the IllegalArgumentException
and crash.

Solution:
The similar with b/31706903, Handle IAE in StorageManager.
Add try-catch at PackageManager.deletePackageAsUser().

Bug: 73979017
Change-Id: I200e93e4e7d7b34aac5bbca78804effa7a78c74b
1 file changed