Modify logic to compute trustedSource

A caller can be trusted if it is privileged and passed
EXTRA_NOT_UNKNOWN_SOURCE or holds the INSTALL_PACKAGES permission.

Bug: 343233266
Test: CtsPackageInstallTestCases
Change-Id: I49329e62ed36a5d9c134d7c1430468dfe79fcbc3
1 file changed