Loading init/first_stage_init.cpp +10 −1 Original line number Diff line number Diff line Loading @@ -234,7 +234,16 @@ int FirstStageMain(int argc, char** argv) { old_root_dir.reset(); } Modprobe m({"/lib/modules"}); std::string module_load_file = "modules.load"; if (IsRecoveryMode() && !ForceNormalBoot(cmdline)) { struct stat fileStat; std::string recovery_load_path = "/lib/modules/modules.load.recovery"; if (!stat(recovery_load_path.c_str(), &fileStat)) { module_load_file = "modules.load.recovery"; } } Modprobe m({"/lib/modules"}, module_load_file); auto want_console = ALLOW_FIRST_STAGE_CONSOLE && FirstStageConsole(cmdline); if (!m.LoadListedModules(!want_console)) { if (want_console) { Loading libmodprobe/include/modprobe/modprobe.h +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ class Modprobe { public: Modprobe(const std::vector<std::string>&); Modprobe(const std::vector<std::string>&, const std::string load_file = "modules.load"); bool LoadListedModules(bool strict = true); bool LoadWithAliases(const std::string& module_name, bool strict, Loading libmodprobe/libmodprobe.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -312,7 +312,7 @@ void Modprobe::ParseKernelCmdlineOptions(void) { } } Modprobe::Modprobe(const std::vector<std::string>& base_paths) { Modprobe::Modprobe(const std::vector<std::string>& base_paths, const std::string load_file) { using namespace std::placeholders; for (const auto& base_path : base_paths) { Loading @@ -326,7 +326,7 @@ Modprobe::Modprobe(const std::vector<std::string>& base_paths) { ParseCfg(base_path + "/modules.softdep", softdep_callback); auto load_callback = std::bind(&Modprobe::ParseLoadCallback, this, _1); ParseCfg(base_path + "/modules.load", load_callback); ParseCfg(base_path + "/" + load_file, load_callback); auto options_callback = std::bind(&Modprobe::ParseOptionsCallback, this, _1); ParseCfg(base_path + "/modules.options", options_callback); Loading libstats/pull/Android.bp +4 −1 Original line number Diff line number Diff line Loading @@ -30,11 +30,11 @@ cc_defaults { shared_libs: [ "libbinder_ndk", "liblog", "statsd-aidl-ndk_platform", "libstatssocket", ], static_libs: [ "libutils", "statsd-aidl-ndk_platform", ], } cc_library_shared { Loading @@ -53,6 +53,9 @@ cc_library_shared { "com.android.os.statsd", "test_com.android.os.statsd", ], stl: "libc++_static", // TODO(b/151102177): Enable it when the build error is fixed. header_abi_checker: { enabled: false, Loading libstats/socket/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ cc_library { }, }, }, stl: "libc++_static", // enumerate stable entry points for APEX use stubs: { Loading Loading
init/first_stage_init.cpp +10 −1 Original line number Diff line number Diff line Loading @@ -234,7 +234,16 @@ int FirstStageMain(int argc, char** argv) { old_root_dir.reset(); } Modprobe m({"/lib/modules"}); std::string module_load_file = "modules.load"; if (IsRecoveryMode() && !ForceNormalBoot(cmdline)) { struct stat fileStat; std::string recovery_load_path = "/lib/modules/modules.load.recovery"; if (!stat(recovery_load_path.c_str(), &fileStat)) { module_load_file = "modules.load.recovery"; } } Modprobe m({"/lib/modules"}, module_load_file); auto want_console = ALLOW_FIRST_STAGE_CONSOLE && FirstStageConsole(cmdline); if (!m.LoadListedModules(!want_console)) { if (want_console) { Loading
libmodprobe/include/modprobe/modprobe.h +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ class Modprobe { public: Modprobe(const std::vector<std::string>&); Modprobe(const std::vector<std::string>&, const std::string load_file = "modules.load"); bool LoadListedModules(bool strict = true); bool LoadWithAliases(const std::string& module_name, bool strict, Loading
libmodprobe/libmodprobe.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -312,7 +312,7 @@ void Modprobe::ParseKernelCmdlineOptions(void) { } } Modprobe::Modprobe(const std::vector<std::string>& base_paths) { Modprobe::Modprobe(const std::vector<std::string>& base_paths, const std::string load_file) { using namespace std::placeholders; for (const auto& base_path : base_paths) { Loading @@ -326,7 +326,7 @@ Modprobe::Modprobe(const std::vector<std::string>& base_paths) { ParseCfg(base_path + "/modules.softdep", softdep_callback); auto load_callback = std::bind(&Modprobe::ParseLoadCallback, this, _1); ParseCfg(base_path + "/modules.load", load_callback); ParseCfg(base_path + "/" + load_file, load_callback); auto options_callback = std::bind(&Modprobe::ParseOptionsCallback, this, _1); ParseCfg(base_path + "/modules.options", options_callback); Loading
libstats/pull/Android.bp +4 −1 Original line number Diff line number Diff line Loading @@ -30,11 +30,11 @@ cc_defaults { shared_libs: [ "libbinder_ndk", "liblog", "statsd-aidl-ndk_platform", "libstatssocket", ], static_libs: [ "libutils", "statsd-aidl-ndk_platform", ], } cc_library_shared { Loading @@ -53,6 +53,9 @@ cc_library_shared { "com.android.os.statsd", "test_com.android.os.statsd", ], stl: "libc++_static", // TODO(b/151102177): Enable it when the build error is fixed. header_abi_checker: { enabled: false, Loading
libstats/socket/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ cc_library { }, }, }, stl: "libc++_static", // enumerate stable entry points for APEX use stubs: { Loading