Merge "Set libavb version into system property for Treble OTA" am: b47a22337b
am: bfe7cf0e88
am: e8a04c4657
am: 9de7214703
Change-Id: I9d17be858ed8ff66c5b3144ae1d16ab618ffd92a
This commit is contained in:
commit
8dcf9bb29b
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue