From 091c4d143975f9e268e5b3aac1923cc68e7781d2 Mon Sep 17 00:00:00 2001 From: Nikita Ioffe Date: Thu, 5 Dec 2019 12:35:19 +0000 Subject: Remove service defined in an APEX during userspace reboot Such services will be re-parsed and added back to the service list during post-fs-data stage. Test: adb reboot userspace Test: atest CtsInitTestCases Bug: 145669993 Bug: 135984674 Change-Id: Ibb393dfe0f101c4ebe37bc763733fd5d981d3691 --- init/builtins.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init/builtins.cpp') diff --git a/init/builtins.cpp b/init/builtins.cpp index 98a980571..1a98f4ea9 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -1180,7 +1180,7 @@ static Result do_parse_apex_configs(const BuiltinArguments& args) { return Error() << "glob pattern '" << glob_pattern << "' failed"; } std::vector configs; - Parser parser = CreateServiceOnlyParser(ServiceList::GetInstance()); + Parser parser = CreateServiceOnlyParser(ServiceList::GetInstance(), true); for (size_t i = 0; i < glob_result.gl_pathc; i++) { std::string path = glob_result.gl_pathv[i]; // Filter-out /apex/@ paths. The paths are bind-mounted to -- cgit v1.2.3