From d40f88c86048a5e6acd570a2018e5cebae5699fb Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Sun, 1 Apr 2018 02:56:00 -0700 Subject: [PATCH] sanders: init: Handle overriding system and vendor props * Up until now, vendor build properties were added into /system/build.prop when property split isn't enabled. However, Google realised that either /vendor/build.prop or /system/vendor/build.prop can always exist, and decided to clean up code and always install vendor build props into $(TARGET_OUT_VENDOR)/build.prop. * For this reason, the unified devices that used to override build props such as build fingerprint, will need to override the matching vendor build props. Change-Id: Iacdd8eb67543daff5a46b92dbaf17cd094ce462b --- init/init_sanders.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init/init_sanders.cpp b/init/init_sanders.cpp index 83fa89d..cf0f605 100644 --- a/init/init_sanders.cpp +++ b/init/init_sanders.cpp @@ -49,6 +49,13 @@ void property_override(char const prop[], char const value[]) __system_property_add(prop, strlen(prop), value, strlen(value)); } +void property_override_dual(char const system_prop[], char const vendor_prop[], + char const value[]) +{ + property_override(system_prop, value); + property_override(vendor_prop, value); +} + void num_sims() { std::string dualsim;