From 74ea1a7d663864b1a6f76947f0735310f99a3fd9 Mon Sep 17 00:00:00 2001 From: MD Raza Date: Tue, 7 Dec 2021 22:05:08 +0000 Subject: [PATCH] fastbootd: Check for and run startup script if script exists Signed-off-by: MD Raza Change-Id: Id2eeb59ca9161a997b239e8b58619d197dcd2093 --- twrp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/twrp.cpp b/twrp.cpp index 4a7a3373..564454ad 100644 --- a/twrp.cpp +++ b/twrp.cpp @@ -122,6 +122,9 @@ static void process_fastbootd_mode() { #endif gui_msg(Msg("fastboot_console_msg=Entered Fastboot mode...")); + // Check for and run startup script if script exists + TWFunc::check_and_run_script("/system/bin/runatboot.sh", "boot"); + TWFunc::check_and_run_script("/system/bin/postfastboot.sh", "fastboot"); if (gui_startPage("fastboot", 1, 1) != 0) { LOGERR("Failed to start fastbootd page.\n"); }