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)
committerJP Sugarbroad <jpsugar@google.com>
Wed, 7 Aug 2019 21:12:56 +0000 (14:12 -0700)
commit36168195b48231f044bd4af23ea667fa1b514c6d
treea67c8b97c38665e8150625265608f28f4c0c3e04
parent205355ee59dc5d5ef225a024c3bc66272428c0d8
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
(cherry picked from commit 43e682abef2a1c65585bef510c390480f0c4a2fd)
services/core/java/com/android/server/pm/PackageManagerService.java