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
tree: f7b1f14c6d89470dfb41f3838514873266e166c2
  1. apexd/
  2. apexer/
  3. proto/
  4. shim/
  5. tests/
  6. CleanSpec.mk
  7. OWNERS
  8. PREUPLOAD.cfg