apexd: fix bug in getAllPackages in case samegrade of system APEX

In case of samegrade of a system apex, an apex on /data partition will
be correctly reported by getAllPackages as the active one.

Test: atest apexservice_test
Test: atest CtsStagedInstallHostTestCases
Test: adb pull /system/apex/com.google.android.tzdata.apex /tmp/tz.apex
Test: adb install /tmp/tz.apex && adb reboot
Test: adb shell cmd apexservice getAllPackages
Test: adb shell cmd apexservice getActivePackages

Change-Id: Ib20ddef5a1f61837799a61bd429afe5ff4bfd6a9
Merged-In: I828c87510cfac0ae14ba5c8bf949aa259182fe4a
Bug: 140229069
1 file changed
tree: ec259bf6da278c1ece0a446f40fd9cb595d5d2eb
  1. CleanSpec.mk
  3. PREUPLOAD.cfg
  4. apexd/
  5. apexer/
  6. proto/
  7. shim/
  8. tests/