summaryrefslogtreecommitdiff
path: root/cmds/installd/InstalldNativeService.cpp
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2021-06-08 08:04:52 -0700
committer Calin Juravle <calin@google.com> 2021-06-17 16:12:30 -0700
commit3b75828afe340f3114c48ea0754f05fa2d032e29 (patch)
tree4859faf088c83eb1328e237ca13640f34b3cd5e2 /cmds/installd/InstalldNativeService.cpp
parenta9b47394415c5272f4905a98541e864618b4f0e3 (diff)
Extend profile analysis with proper return codes
This allows us to fine tune the optimization strategy when profiles are empty. Test: atest installd_dexopt_test Bug: 188655918 Change-Id: Iaf782eedd92dfddd522feaecb446c85f3ae1c51e (cherry picked from commit e90de86f92669fc5557891fdfd1d6e6c2ef240fc)
Diffstat (limited to 'cmds/installd/InstalldNativeService.cpp')
-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 0595322f92..f4159c0871 100644
--- a/cmds/installd/InstalldNativeService.cpp
+++ b/cmds/installd/InstalldNativeService.cpp
@@ -2357,7 +2357,7 @@ binder::Status InstalldNativeService::copySystemProfile(const std::string& syste
// TODO: Consider returning error codes.
binder::Status InstalldNativeService::mergeProfiles(int32_t uid, const std::string& packageName,
- const std::string& profileName, bool* _aidl_return) {
+ const std::string& profileName, int* _aidl_return) {
ENFORCE_UID(AID_SYSTEM);
CHECK_ARGUMENT_PACKAGE_NAME(packageName);
std::lock_guard<std::recursive_mutex> lock(mLock);