diff options
Diffstat (limited to 'init/action_parser.cpp')
-rw-r--r-- | init/action_parser.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/init/action_parser.cpp b/init/action_parser.cpp index 2d497b386..4f8bd166a 100644 --- a/init/action_parser.cpp +++ b/init/action_parser.cpp @@ -40,6 +40,18 @@ bool IsActionableProperty(Subcontext* subcontext, const std::string& prop_name) return true; } + static constexpr const char* kPartnerPrefixes[] = { + "init.svc.vendor.", "ro.vendor.", "persist.vendor.", + "vendor.", "init.svc.odm.", "ro.odm.", + "persist.odm.", "odm.", "ro.boot.", + }; + + for (const auto& prefix : kPartnerPrefixes) { + if (android::base::StartsWith(prop_name, prefix)) { + return true; + } + } + return CanReadProperty(subcontext->context(), prop_name); } |