Increase functionality for getInstalledPackages for APEXes.
Add methods to get factory (pre-installed) packages, as well as inactive
packages (currently defined as factory packages which are inactive).
Add an interface to apexservice for these methods.
Test: atest apexservice_test
Test: adb shell cmd apexservice getInactivePackages
Test: adb shell cmd apexservice getFactoryPackages
Test: adb shell cmd apexservice getAllPackages
Bug: 123680735
Bug: 119767311
Change-Id: I2cb4d07d71b801730b3c764bf22aa061353faf38
6 files changed