diff options
| author | 2019-01-23 17:02:31 +0000 | |
|---|---|---|
| committer | 2019-01-23 17:02:31 +0000 | |
| commit | e03e0690148e2b43f0470f495efb6d33a3bd4bbf (patch) | |
| tree | e9f54295af54f612864ff9a53f43ed06700fe430 /cmds/installd/InstalldNativeService.cpp | |
| parent | 75c59f8bd0ea955ac37ec5ab46197d011f42436e (diff) | |
| parent | 2af5e6a5df031ebce1745e403ef0b535773a7361 (diff) | |
Merge "[view compilation] Add viewcompiler support to installd"
Diffstat (limited to 'cmds/installd/InstalldNativeService.cpp')
| -rw-r--r-- | cmds/installd/InstalldNativeService.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp index 2439dff54e..8a036a5c1c 100644 --- a/cmds/installd/InstalldNativeService.cpp +++ b/cmds/installd/InstalldNativeService.cpp @@ -60,6 +60,7 @@ #include "installd_deps.h" #include "otapreopt_utils.h" #include "utils.h" +#include "view_compiler.h" #include "CacheTracker.h" #include "MatchExtensionGen.h" @@ -1831,6 +1832,17 @@ binder::Status InstalldNativeService::dexopt(const std::string& apkPath, int32_t return res ? error(res, error_msg) : ok(); } +binder::Status InstalldNativeService::compileLayouts(const std::string& apkPath, + const std::string& packageName, + const std ::string& outDexFile, int uid, + bool* _aidl_return) { + const char* apk_path = apkPath.c_str(); + const char* package_name = packageName.c_str(); + const char* out_dex_file = outDexFile.c_str(); + *_aidl_return = android::installd::view_compiler(apk_path, package_name, out_dex_file, uid); + return *_aidl_return ? ok() : error("viewcompiler failed"); +} + binder::Status InstalldNativeService::markBootComplete(const std::string& instructionSet) { ENFORCE_UID(AID_SYSTEM); std::lock_guard<std::recursive_mutex> lock(mLock); |