Home
last modified time | relevance | path

Searched refs:bootconfig (Results 1 – 18 of 18) sorted by relevance

/system/core/fs_mgr/
Dfs_mgr_boot_config.cpp85 bool fs_mgr_get_boot_config_from_bootconfig(const std::string& bootconfig, in fs_mgr_get_boot_config_from_bootconfig() argument
90 for (const auto& [key, value] : fs_mgr_parse_proc_bootconfig(bootconfig)) { in fs_mgr_get_boot_config_from_bootconfig()
120 std::string bootconfig; in fs_mgr_get_boot_config_from_bootconfig_source() local
121 if (!android::base::ReadFileToString("/proc/bootconfig", &bootconfig)) return false; in fs_mgr_get_boot_config_from_bootconfig_source()
122 if (!bootconfig.empty() && bootconfig.back() == '\n') { in fs_mgr_get_boot_config_from_bootconfig_source()
123 bootconfig.pop_back(); in fs_mgr_get_boot_config_from_bootconfig_source()
125 return fs_mgr_get_boot_config_from_bootconfig(bootconfig, key, out_val); in fs_mgr_get_boot_config_from_bootconfig_source()
Dfs_mgr_priv_boot_config.h32 const std::string& bootconfig);
33 bool fs_mgr_get_boot_config_from_bootconfig(const std::string& bootconfig, const std::string& key,
/system/core/init/
Dfirst_stage_console.cpp108 int FirstStageConsole(const std::string& cmdline, const std::string& bootconfig) { in FirstStageConsole() argument
109 auto pos = bootconfig.find("androidboot.first_stage_console ="); in FirstStageConsole()
112 if (sscanf(bootconfig.c_str() + pos, "androidboot.first_stage_console = \"%d\"", &val) != in FirstStageConsole()
Dfirst_stage_init.cpp105 bool ForceNormalBoot(const std::string& cmdline, const std::string& bootconfig) { in ForceNormalBoot() argument
106 return bootconfig.find("androidboot.force_normal_boot = \"1\"") != std::string::npos || in ForceNormalBoot()
215 std::string bootconfig; in FirstStageMain() local
216 android::base::ReadFileToString("/proc/bootconfig", &bootconfig); in FirstStageMain()
284 auto want_console = ALLOW_FIRST_STAGE_CONSOLE ? FirstStageConsole(cmdline, bootconfig) : 0; in FirstStageMain()
288 if (!LoadKernelModules(IsRecoveryMode() && !ForceNormalBoot(cmdline, bootconfig), want_console, in FirstStageMain()
343 if (ForceNormalBoot(cmdline, bootconfig)) { in FirstStageMain()
Dfirst_stage_console.h32 int FirstStageConsole(const std::string& cmdline, const std::string& bootconfig);
Dutil.cpp250 std::string bootconfig; in ImportBootconfig() local
251 android::base::ReadFileToString("/proc/bootconfig", &bootconfig); in ImportBootconfig()
253 for (const auto& entry : android::base::Split(bootconfig, "\n")) { in ImportBootconfig()
/system/core/fastboot/testdata/
DAndroid.bp43 // Fake bootconfig image.
48 cmd: "$(location fastboot_gen_rand) --seed bootconfig --length 1024 > $(out)",
/system/sepolicy/prebuilts/api/31.0/public/
Duncrypt.te35 # Access to bootconfig is needed when calling ReadDefaultFstab.
Dueventd.te43 # Allow ueventd to read androidboot.android_dt_dir from kernel cmdline or bootconfig.
/system/sepolicy/public/
Duncrypt.te35 # Access to bootconfig is needed when calling ReadDefaultFstab.
Dueventd.te43 # Allow ueventd to read androidboot.android_dt_dir from kernel cmdline or bootconfig.
/system/core/fastboot/
Dvendor_boot_img_utils_test.cpp213 OpenTestFile("test_bootconfig.img", &bootconfig, &bootconfig_content); in SetUp()
221 std::unique_ptr<TestFileHandle> bootconfig; member in __anon39f087e00111::RepackVendorBootImgTestEnv
314 EXPECT_EQ(hdr_v4->bootconfig_size, env->bootconfig->size()); in TEST_P()
383 EXPECT_EQ(hdr->bootconfig_size, env->bootconfig->size()); in TEST_P()
/system/sepolicy/private/
Drecovery.te47 # Needed to read bootconfig parameters through libfs_mgr
Dgenfs_contexts6 genfscon proc /bootconfig u:object_r:proc_bootconfig:s0
/system/sepolicy/prebuilts/api/31.0/private/
Drecovery.te47 # Needed to read bootconfig parameters through libfs_mgr
Dgenfs_contexts6 genfscon proc /bootconfig u:object_r:proc_bootconfig:s0
/system/tools/mkbootimg/tests/
Dmkbootimg_test.py253 bootconfig = generate_test_file(
270 '--vendor_bootconfig', bootconfig,
328 bootconfig = generate_test_file(
346 '--vendor_bootconfig', bootconfig,
/system/core/fs_mgr/tests/
Dfs_mgr_test.cpp122 const std::string bootconfig = variable
239 EXPECT_EQ(bootconfig_result_space, fs_mgr_parse_proc_bootconfig(bootconfig)); in TEST()
248 EXPECT_TRUE(fs_mgr_get_boot_config_from_bootconfig(bootconfig, key, &content)) in TEST()
253 EXPECT_FALSE(fs_mgr_get_boot_config_from_bootconfig(bootconfig, "vbmeta.avb_versio", &content)); in TEST()
255 EXPECT_FALSE(fs_mgr_get_boot_config_from_bootconfig(bootconfig, "nospace", &content)); in TEST()