Home
last modified time | relevance | path

Searched refs:boot (Results 1 – 10 of 10) sorted by relevance

/bootable/recovery/tests/component/
Dbootloader_message_test.cpp29 bootloader_message boot = {}; in TEST() local
30 strlcpy(boot.command, "command", sizeof(boot.command)); in TEST()
31 strlcpy(boot.recovery, "message1\nmessage2\n", sizeof(boot.recovery)); in TEST()
32 strlcpy(boot.status, "status1", sizeof(boot.status)); in TEST()
35 ASSERT_TRUE(write_bootloader_message_to(boot, temp_misc.path, &err)) in TEST()
43 ASSERT_EQ(std::string(reinterpret_cast<const char*>(&boot), sizeof(boot)), in TEST()
51 bootloader_message boot = {}; in TEST() local
53 strlcpy(boot.recovery, "random message", sizeof(boot.recovery)); in TEST()
54 strlcpy(boot.status, "status bytes", sizeof(boot.status)); in TEST()
55 strlcpy(boot.stage, "stage bytes", sizeof(boot.stage)); in TEST()
[all …]
Duncrypt_test.cpp132 bootloader_message boot; in SetupOrClearBcb() local
134 ASSERT_TRUE(read_bootloader_message(&boot, &err)) << "Failed to read BCB: " << err; in SetupOrClearBcb()
137 ASSERT_EQ("boot-recovery", std::string(boot.command)); in SetupOrClearBcb()
138 ASSERT_EQ(message_in_bcb, std::string(boot.recovery)); in SetupOrClearBcb()
141 ASSERT_LE(message_in_bcb.size(), sizeof(boot.recovery)); in SetupOrClearBcb()
142 size_t left = sizeof(boot.recovery) - message_in_bcb.size(); in SetupOrClearBcb()
143 ASSERT_EQ(std::string(left, '\0'), std::string(&boot.recovery[message_in_bcb.size()], left)); in SetupOrClearBcb()
149 ASSERT_EQ(std::string(sizeof(boot), '\0'), in SetupOrClearBcb()
150 std::string(reinterpret_cast<const char*>(&boot), sizeof(boot))); in SetupOrClearBcb()
156 bootloader_message boot; in VerifyBootloaderMessage() local
[all …]
Dupdater_test.cpp353 bootloader_message boot; in TEST_F() local
354 strlcpy(boot.stage, "2/3", sizeof(boot.stage)); in TEST_F()
356 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err)); in TEST_F()
376 bootloader_message boot; in TEST_F() local
377 strlcpy(boot.command, "command", sizeof(boot.command)); in TEST_F()
378 strlcpy(boot.stage, "2/3", sizeof(boot.stage)); in TEST_F()
380 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err)); in TEST_F()
392 ASSERT_STREQ(boot.command, boot_verify.command); in TEST_F()
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp127 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device, in read_bootloader_message_from() argument
129 return read_misc_partition(boot, sizeof(*boot), misc_blk_device, in read_bootloader_message_from()
133 bool read_bootloader_message(bootloader_message* boot, std::string* err) { in read_bootloader_message() argument
138 return read_bootloader_message_from(boot, misc_blk_device, err); in read_bootloader_message()
141 bool write_bootloader_message_to(const bootloader_message& boot, const std::string& misc_blk_device, in write_bootloader_message_to() argument
143 return write_misc_partition(&boot, sizeof(boot), misc_blk_device, in write_bootloader_message_to()
147 bool write_bootloader_message(const bootloader_message& boot, std::string* err) { in write_bootloader_message() argument
152 return write_bootloader_message_to(boot, misc_blk_device, err); in write_bootloader_message()
156 bootloader_message boot = {}; in clear_bootloader_message() local
157 return write_bootloader_message(boot, err); in clear_bootloader_message()
[all …]
/bootable/recovery/bootloader_message/include/bootloader_message/
Dbootloader_message.h193 bool read_bootloader_message(bootloader_message* boot, std::string* err);
196 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device,
200 bool write_bootloader_message(const bootloader_message& boot, std::string* err);
203 bool write_bootloader_message_to(const bootloader_message& boot,
216 bool update_bootloader_message_in_struct(bootloader_message* boot,
/bootable/recovery/update_verifier/
DAndroid.mk32 android.hardware.boot@1.0
71 android.hardware.boot@1.0
Dupdate_verifier.cpp64 using android::hardware::boot::V1_0::IBootControl;
65 using android::hardware::boot::V1_0::BoolResult;
66 using android::hardware::boot::V1_0::CommandResult;
/bootable/recovery/etc/
Dinit.rc47 on boot
76 trigger early-boot
77 trigger boot
/bootable/recovery/updater/
Dinstall.cpp863 bootloader_message boot; in RebootNowFn() local
865 if (!read_bootloader_message_from(&boot, filename, &err)) { in RebootNowFn()
869 memset(boot.command, 0, sizeof(boot.command)); in RebootNowFn()
870 if (!write_bootloader_message_to(boot, filename, &err)) { in RebootNowFn()
912 bootloader_message boot; in SetStageFn() local
914 if (!read_bootloader_message_from(&boot, filename, &err)) { in SetStageFn()
918 strlcpy(boot.stage, stagestr.c_str(), sizeof(boot.stage)); in SetStageFn()
919 if (!write_bootloader_message_to(boot, filename, &err)) { in SetStageFn()
940 bootloader_message boot; in GetStageFn() local
942 if (!read_bootloader_message_from(&boot, filename, &err)) { in GetStageFn()
[all …]
/bootable/recovery/
DREADME.md9 # To boot into the new recovery image
12 fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
63 Although `/sbin/adbd` shares the same binary between normal boot and recovery images, only a subset
115 recovery image doesn't honor the USB debugging toggle and the authorizations added under normal boot
132 Note that this mechanism applies to both of normal boot and recovery modes.