OSDN Git Service

Use system user when installing APKs.
authorDario Freni <dariofreni@google.com>
Tue, 2 Apr 2019 10:45:13 +0000 (11:45 +0100)
committerDario Freni <dariofreni@google.com>
Tue, 2 Apr 2019 13:27:01 +0000 (14:27 +0100)
commitc3e68eae01925dfa47027584cd2a8a63f419c787
treea08a84dfec01e4cfc38bf4da37f413f54023d7d0
parent1d5f6d3b9e94dd512c9abe62c09999a77203df1d
Use system user when installing APKs.

For Mainline module updates, this will effectively be the same operation
as installing the packages as a secondary user, since the packages are
preinstalled and preinstalled packages are visible to users. Also,
Mainline modules cannot be disabled per-user.

Since staged install are only issued by privileged apps having
INSTALL_PACKAGES permission, we believe this change is safe for the sake
of mainline.

Fix: 129397974
Bug: 129744602
Test: repro b/129397974 and verify install succeeds.
Change-Id: I5b388707848b6cdbf20511eea02a0c2abd768b86
services/core/java/com/android/server/pm/StagingManager.java