OSDN Git Service

OP_REQUEST_INSTALL_PACKAGES denied by default
authorChristopher Dombroski <cdombroski@google.com>
Tue, 16 Apr 2019 20:21:39 +0000 (13:21 -0700)
committerSuprabh Shukla <suprabh@google.com>
Wed, 24 Apr 2019 18:28:06 +0000 (18:28 +0000)
commit43e682abef2a1c65585bef510c390480f0c4a2fd
tree610599dc2ae39b05868a1a9ee173e18695fd91fe
parent07a485743ad170d5491383a8c5909ced14bb0930
OP_REQUEST_INSTALL_PACKAGES denied by default

Some system apps may download unknown content and the user should
be explicitly asked whether they trust these files. System apps should
explicitly use the extra NOT_UNKNOWN_SOURCE to bypass this check.

Test: Builds, boots, existing tests pass:
atest CtsPackageInstallTestCases

Locally verified they pass if CtsPackageInstallTestCases.apk was signed by
the platform cert.

Bug: 123700348
Change-Id: I3028bf8ff3f79a41521deeee43fba3c32bb1b2ca
Merged-In: I2578251906f6656b83464d1c4fc4db99165841c9
services/core/java/com/android/server/pm/PackageManagerService.java