diff --git a/init/init.cpp b/init/init.cpp index 9c1e23bba..7f7eb2f00 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -47,6 +47,7 @@ #include #include #include +#include #include #include @@ -959,6 +960,9 @@ int main(int argc, char** argv) { property_set("ro.boottime.init", getenv("INIT_STARTED_AT")); property_set("ro.boottime.init.selinux", getenv("INIT_SELINUX_TOOK")); + // Set libavb version for Framework-only OTA match in Treble build. + property_set("ro.boot.init.avb_version", std::to_string(AVB_MAJOR_VERSION).c_str()); + // Clean up our environment. unsetenv("INIT_SECOND_STAGE"); unsetenv("INIT_STARTED_AT");