diff options
author | Tom Cherry <tomcherry@google.com> | 2019-08-19 15:21:25 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2019-12-04 15:43:21 -0800 |
commit | c88d8f93cfaa8cbf368a0fa94e8bc84bc55c3ece (patch) | |
tree | 3caaa75251230d98f2b21dadd9b8892c2442c976 /init/subcontext.cpp | |
parent | f7a6c4587f06bc7e79748acd97dc4dd5b741f328 (diff) |
init: Replace property_set() with android::base::SetProperty()
Init is no longer a special case and talks to property service just
like every other client, therefore move it away from property_set()
and to android::base::SetProperty().
In doing so, this change moves the initial property set up from the
kernel command line and property files directly into PropertyInit().
This makes the responsibilities between init and property services
more clear.
Test: boot, unit test cases
Change-Id: I36b8c83e845d887f1b203355c2391ec123c3d05f
Diffstat (limited to 'init/subcontext.cpp')
-rw-r--r-- | init/subcontext.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/init/subcontext.cpp b/init/subcontext.cpp index bebcc7733..f3f759d6f 100644 --- a/init/subcontext.cpp +++ b/init/subcontext.cpp @@ -176,11 +176,6 @@ int SubcontextMain(int argc, char** argv, const BuiltinFunctionMap* function_map SelabelInitialize(); - property_set = [](const std::string& key, const std::string& value) -> uint32_t { - android::base::SetProperty(key, value); - return 0; - }; - trigger_shutdown = [](const std::string& command) { shutdown_command = command; }; auto subcontext_process = SubcontextProcess(function_map, context, init_fd); |