Home
last modified time | relevance | path

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

/bootable/recovery/tests/component/
Dbootloader_message_test.cpp34 bootloader_message boot = {}; in TEST() local
35 strlcpy(boot.command, "command", sizeof(boot.command)); in TEST()
36 strlcpy(boot.recovery, "message1\nmessage2\n", sizeof(boot.recovery)); in TEST()
37 strlcpy(boot.status, "status1", sizeof(boot.status)); in TEST()
40 ASSERT_TRUE(write_bootloader_message_to(boot, temp_misc.path, &err)) in TEST()
48 ASSERT_EQ(std::string(reinterpret_cast<const char*>(&boot), sizeof(boot)), in TEST()
56 bootloader_message boot = {}; in TEST() local
58 strlcpy(boot.recovery, "random message", sizeof(boot.recovery)); in TEST()
59 strlcpy(boot.status, "status bytes", sizeof(boot.status)); in TEST()
60 strlcpy(boot.stage, "stage bytes", sizeof(boot.stage)); in TEST()
[all …]
Duncrypt_test.cpp131 bootloader_message boot; in SetupOrClearBcb() local
133 ASSERT_TRUE(read_bootloader_message(&boot, &err)) << "Failed to read BCB: " << err; in SetupOrClearBcb()
136 ASSERT_EQ("boot-recovery", std::string(boot.command)); in SetupOrClearBcb()
137 ASSERT_EQ(message_in_bcb, std::string(boot.recovery)); in SetupOrClearBcb()
140 ASSERT_LE(message_in_bcb.size(), sizeof(boot.recovery)); in SetupOrClearBcb()
141 size_t left = sizeof(boot.recovery) - message_in_bcb.size(); in SetupOrClearBcb()
142 ASSERT_EQ(std::string(left, '\0'), std::string(&boot.recovery[message_in_bcb.size()], left)); in SetupOrClearBcb()
148 ASSERT_EQ(std::string(sizeof(boot), '\0'), in SetupOrClearBcb()
149 std::string(reinterpret_cast<const char*>(&boot), sizeof(boot))); in SetupOrClearBcb()
155 bootloader_message boot; in VerifyBootloaderMessage() local
[all …]
Dupdater_test.cpp506 bootloader_message boot; in TEST_F() local
507 strlcpy(boot.stage, "2/3", sizeof(boot.stage)); in TEST_F()
509 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err)); in TEST_F()
529 bootloader_message boot; in TEST_F() local
530 strlcpy(boot.command, "command", sizeof(boot.command)); in TEST_F()
531 strlcpy(boot.stage, "2/3", sizeof(boot.stage)); in TEST_F()
533 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err)); in TEST_F()
545 ASSERT_STREQ(boot.command, boot_verify.command); in TEST_F()
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp142 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device, in read_bootloader_message_from() argument
144 return read_misc_partition(boot, sizeof(*boot), misc_blk_device, in read_bootloader_message_from()
148 bool read_bootloader_message(bootloader_message* boot, std::string* err) { in read_bootloader_message() argument
153 return read_bootloader_message_from(boot, misc_blk_device, err); in read_bootloader_message()
156 bool write_bootloader_message_to(const bootloader_message& boot, const std::string& misc_blk_device, in write_bootloader_message_to() argument
158 return write_misc_partition(&boot, sizeof(boot), misc_blk_device, in write_bootloader_message_to()
162 bool write_bootloader_message(const bootloader_message& boot, std::string* err) { in write_bootloader_message() argument
167 return write_bootloader_message_to(boot, misc_blk_device, err); in write_bootloader_message()
171 bootloader_message boot = {}; in clear_bootloader_message() local
172 return write_bootloader_message(boot, err); in clear_bootloader_message()
[all …]
/bootable/recovery/
Drecovery_main.cpp91 bootloader_message boot = {}; in get_args() local
93 if (!read_bootloader_message(&boot, &err)) { in get_args()
96 boot = {}; in get_args()
98 stage = std::string(boot.stage); in get_args()
101 if (boot.command[0] != 0) { in get_args()
102 if (memchr(boot.command, '\0', sizeof(boot.command))) { in get_args()
103 boot_command = std::string(boot.command); in get_args()
105 boot_command = std::string(boot.command, sizeof(boot.command)); in get_args()
110 if (boot.status[0] != 0) { in get_args()
111 std::string boot_status = std::string(boot.status, sizeof(boot.status)); in get_args()
[all …]
DREADME.md9 # To boot into the new recovery image
12 fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
56 Although `/system/bin/adbd` is built from the same code base as the one in the normal boot, only a
108 recovery image doesn't honor the USB debugging toggle and the authorizations added under normal boot
125 Note that this mechanism applies to both of normal boot and recovery modes.
/bootable/recovery/bootloader_message/include/bootloader_message/
Dbootloader_message.h194 bool read_bootloader_message(bootloader_message* boot, std::string* err);
197 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device,
201 bool write_bootloader_message(const bootloader_message& boot, std::string* err);
204 bool write_bootloader_message_to(const bootloader_message& boot,
217 bool update_bootloader_message_in_struct(bootloader_message* boot,
/bootable/recovery/update_verifier/
DAndroid.bp49 "android.hardware.boot@1.0",
80 "android.hardware.boot@1.0",
Dupdate_verifier.cpp70 using android::hardware::boot::V1_0::IBootControl;
71 using android::hardware::boot::V1_0::BoolResult;
72 using android::hardware::boot::V1_0::CommandResult;
/bootable/recovery/updater/
Dinstall.cpp769 bootloader_message boot; in RebootNowFn() local
771 if (!read_bootloader_message_from(&boot, filename, &err)) { in RebootNowFn()
775 memset(boot.command, 0, sizeof(boot.command)); in RebootNowFn()
776 if (!write_bootloader_message_to(boot, filename, &err)) { in RebootNowFn()
814 bootloader_message boot; in SetStageFn() local
816 if (!read_bootloader_message_from(&boot, filename, &err)) { in SetStageFn()
820 strlcpy(boot.stage, stagestr.c_str(), sizeof(boot.stage)); in SetStageFn()
821 if (!write_bootloader_message_to(boot, filename, &err)) { in SetStageFn()
842 bootloader_message boot; in GetStageFn() local
844 if (!read_bootloader_message_from(&boot, filename, &err)) { in GetStageFn()
[all …]
/bootable/recovery/etc/
Dinit.rc40 on boot
69 trigger early-boot
70 trigger boot
/bootable/recovery/updater_sample/
DREADME.md46 if `ab_config.force_switch_slot` set true device will boot to the