- Add null check for the package info when trying to retrieve the install app state. During package update, the package info might becomes null. The App info activity will finish in that case, but this method might be called before the activity actually finishes. Change-Id: I18ff448666dfb403bb6693fccd3e54276db36f37 Fixes: 78257414 Test: make RunSettingsRoboTests
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.