kernel_module_loader: Set a prop after completing

* we can use this as a trigger in init rc, for any task
   that depend on kernel modules being loaded

Change-Id: I7623edc0b6dc799e911a087881f76e9642e005ee
This commit is contained in:
Adithya R
2021-12-19 00:49:54 +05:30
committed by bigbiff
parent 0df7c9ef27
commit 3a59df59cc
3 changed files with 33 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
#include "kernel_module_loader.hpp"
#include "common.h"
const std::vector<std::string> kernel_modules_requested = TWFunc::split_string(EXPAND(TW_LOAD_VENDOR_MODULES), ' ', true);
@@ -58,6 +59,10 @@ exit:
if (ven)
ven->UnMount(false);
android::base::SetProperty("twrp.modules.loaded", "true");
TWFunc::Wait_For_Battery(3s);
return true;
}