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

Commit 86e31a81 authored by Tom Cherry's avatar Tom Cherry
Browse files

init: use full command for exec services' names

Before:
init: starting service 'exec 4 (/system/bin/vdc)'...
init: starting service 'exec 5 (/system/bin/tzdatacheck)'...
init: starting service 'exec 6 (/system/bin/bootstat)'...
init: starting service 'exec 7 (/system/bin/bootstat)'...

After:
init: starting service 'exec 4 (/system/bin/vdc --wait cryptfs mountdefaultencrypted)'...
init: starting service 'exec 5 (/system/bin/tzdatacheck /system/usr/share/zoneinfo /data/misc/zoneinfo)'...
init: starting service 'exec 6 (/system/bin/bootstat -r post_decrypt_time_elapsed)'...
init: starting service 'exec 7 (/system/bin/bootstat --record_boot_complete)'...

Test: Boot bullhead, observe above logging change
Change-Id: I59e2bd9e3d341bbed9537c972e47246d0a12769d
parent d9ebf061
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -926,7 +926,9 @@ Service* ServiceManager::MakeExecOneshotService(const std::vector<std::string>&
    std::vector<std::string> str_args(args.begin() + command_arg, args.end());

    exec_count_++;
    std::string name = StringPrintf("exec %d (%s)", exec_count_, str_args[0].c_str());
    std::string name =
        "exec " + std::to_string(exec_count_) + " (" + android::base::Join(str_args, " ") + ")";

    unsigned flags = SVC_EXEC | SVC_ONESHOT | SVC_TEMPORARY;
    CapSet no_capabilities;
    unsigned namespace_flags = 0;