[3/N] implement getDeclaredLibraries

+ Add declaredLibraries to ApkLite and PackageLite
+ Move parsing time to be slightly earlier in the verification stage.
  This change only impact mode_inherit installations, because for
mode_full installs, parsing is already done at validation time.

Test: atest CtsPackageManagerTestCases:VerifierServiceTest

FLAG: android.content.pm.verification_service

BUG: 360129103
BUG: 360129657

Change-Id: I68e8da44b90e3b22a2bc0ef34f6c31afe7294e45
5 files changed