Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfe7cf0e authored by bowgotsai's avatar bowgotsai Committed by android-build-merger
Browse files

Merge "Set libavb version into system property for Treble OTA"

am: b47a2233

Change-Id: I397821341206e88b75536105b23aa096b2d7b134
parents d253899e b47a2233
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@
#include <cutils/iosched_policy.h>
#include <cutils/list.h>
#include <cutils/sockets.h>
#include <libavb/libavb.h>
#include <private/android_filesystem_config.h>

#include <fstream>
@@ -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");