diff options
author | Tom Cherry <tomcherry@google.com> | 2018-02-13 16:50:08 -0800 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2018-02-28 10:45:45 -0800 |
commit | de6bd50d4238d19ec401127bcf2321dc679d908d (patch) | |
tree | f181f4acfa59f642c5927fc706060b192a2638e6 /init/action_parser.cpp | |
parent | 304dacae8acd6c3469a7c5ff05357478ad2ff074 (diff) |
init: add host side parser for init
Create a host side parser for init such that init rc files can be
verified for syntax correctness before being used on the device.
Bug: 36970783
Test: run the parser on init files on host
Change-Id: I7e8772e278ebaff727057308596ebacf28b6fdda
Diffstat (limited to 'init/action_parser.cpp')
-rw-r--r-- | init/action_parser.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/init/action_parser.cpp b/init/action_parser.cpp index 8a4b518f5..a2c96718b 100644 --- a/init/action_parser.cpp +++ b/init/action_parser.cpp @@ -16,11 +16,16 @@ #include "action_parser.h" -#include <android-base/properties.h> #include <android-base/strings.h> #include "stable_properties.h" +#if defined(__ANDROID__) +#include <android-base/properties.h> +#else +#include "host_init_stubs.h" +#endif + using android::base::GetBoolProperty; using android::base::StartsWith; |