summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2017-01-03 23:46:07 +0000
committer android-build-merger <android-build-merger@google.com> 2017-01-03 23:46:07 +0000
commitcdeb04edca536beb6b4c0fb1da8f5be8c0a9948e (patch)
treed8fd5f6c422e742a8be73dbc28f3c250e855d52e
parent92e6bc636af4cc8535a448d24fe4d50a0c19f63b (diff)
parent93d4073bc9afb8190310e2b7bc480cb4a79fcc59 (diff)
Merge "Reference profiles use shared GID for user 0." am: 226f77d87a am: ac437f476f
am: 93d4073bc9 Change-Id: I011fb20fe94cd9717bbd3348a27b7c67cc4c2f08
-rw-r--r--cmds/installd/InstalldNativeService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp
index 6efae1b02e..ed5fc4aaee 100644
--- a/cmds/installd/InstalldNativeService.cpp
+++ b/cmds/installd/InstalldNativeService.cpp
@@ -407,7 +407,7 @@ binder::Status InstalldNativeService::createAppData(const std::unique_ptr<std::s
const std::string ref_profile_path = create_data_ref_profile_package_path(pkgname);
// dex2oat/profman runs under the shared app gid and it needs to read/write reference
// profiles.
- int shared_app_gid = multiuser_get_shared_app_gid(uid);
+ int shared_app_gid = multiuser_get_shared_gid(0, appId);
if ((shared_app_gid != -1) && fs_prepare_dir_strict(
ref_profile_path.c_str(), 0700, shared_app_gid, shared_app_gid) != 0) {
return error("Failed to prepare " + ref_profile_path);