/bootable/recovery/tests/component/ |
D | bootloader_message_test.cpp | 56 bootloader_message boot; in TEST_F() local 57 ASSERT_TRUE(read_bootloader_message(&boot, &err)) << "Failed to read BCB: " << err; in TEST_F() 60 ASSERT_EQ(std::string(sizeof(boot), '\0'), in TEST_F() 61 std::string(reinterpret_cast<const char*>(&boot), sizeof(boot))); in TEST_F() 71 bootloader_message boot = {}; in TEST_F() local 72 strlcpy(boot.command, "command", sizeof(boot.command)); in TEST_F() 73 strlcpy(boot.recovery, "message1\nmessage2\n", sizeof(boot.recovery)); in TEST_F() 74 strlcpy(boot.status, "status1", sizeof(boot.status)); in TEST_F() 77 ASSERT_TRUE(write_bootloader_message(boot, &err)) << "Failed to write BCB: " << err; in TEST_F() 83 ASSERT_EQ(std::string(reinterpret_cast<const char*>(&boot), sizeof(boot)), in TEST_F() [all …]
|
D | uncrypt_test.cpp | 125 bootloader_message boot; in TEST_F() local 127 ASSERT_TRUE(read_bootloader_message(&boot, &err)) << "Failed to read BCB: " << err; in TEST_F() 129 ASSERT_EQ("boot-recovery", std::string(boot.command)); in TEST_F() 130 ASSERT_EQ(message_in_bcb, std::string(boot.recovery)); in TEST_F() 133 ASSERT_LE(message_in_bcb.size(), sizeof(boot.recovery)); in TEST_F() 134 size_t left = sizeof(boot.recovery) - message_in_bcb.size(); in TEST_F() 135 ASSERT_EQ(std::string(left, '\0'), std::string(&boot.recovery[message_in_bcb.size()], left)); in TEST_F() 185 bootloader_message boot; in TEST_F() local 187 ASSERT_TRUE(read_bootloader_message(&boot, &err)) << "Failed to read BCB: " << err; in TEST_F() 190 ASSERT_EQ(std::string(sizeof(boot), '\0'), in TEST_F() [all …]
|
D | updater_test.cpp | 418 bootloader_message boot; in TEST_F() local 419 strlcpy(boot.stage, "2/3", sizeof(boot.stage)); in TEST_F() 421 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err)); in TEST_F() 441 bootloader_message boot; in TEST_F() local 442 strlcpy(boot.command, "command", sizeof(boot.command)); in TEST_F() 443 strlcpy(boot.stage, "2/3", sizeof(boot.stage)); in TEST_F() 445 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err)); in TEST_F() 457 ASSERT_STREQ(boot.command, boot_verify.command); in TEST_F()
|
/bootable/recovery/bootloader_message/ |
D | bootloader_message.cpp | 120 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device, in read_bootloader_message_from() argument 122 return read_misc_partition(boot, sizeof(*boot), misc_blk_device, in read_bootloader_message_from() 126 bool read_bootloader_message(bootloader_message* boot, std::string* err) { in read_bootloader_message() argument 131 return read_bootloader_message_from(boot, misc_blk_device, err); in read_bootloader_message() 134 bool write_bootloader_message_to(const bootloader_message& boot, const std::string& misc_blk_device, in write_bootloader_message_to() argument 136 return write_misc_partition(&boot, sizeof(boot), misc_blk_device, in write_bootloader_message_to() 140 bool write_bootloader_message(const bootloader_message& boot, std::string* err) { in write_bootloader_message() argument 145 return write_bootloader_message_to(boot, misc_blk_device, err); in write_bootloader_message() 149 bootloader_message boot = {}; in clear_bootloader_message() local 150 return write_bootloader_message(boot, err); in clear_bootloader_message() [all …]
|
/bootable/recovery/bootloader_message/include/bootloader_message/ |
D | bootloader_message.h | 184 bool read_bootloader_message(bootloader_message* boot, std::string* err); 187 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device, 191 bool write_bootloader_message(const bootloader_message& boot, std::string* err); 194 bool write_bootloader_message_to(const bootloader_message& boot,
|
/bootable/recovery/update_verifier/ |
D | Android.mk | 30 android.hardware.boot@1.0
|
D | update_verifier.cpp | 58 using android::hardware::boot::V1_0::IBootControl; 59 using android::hardware::boot::V1_0::BoolResult; 60 using android::hardware::boot::V1_0::CommandResult;
|
/bootable/recovery/etc/ |
D | init.rc | 46 on boot 75 trigger early-boot 76 trigger boot
|
/bootable/recovery/ |
D | README.md | 9 # To boot into the new recovery image 12 fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
|
D | recovery.cpp | 314 bootloader_message boot = {}; in get_args() local 316 if (!read_bootloader_message(&boot, &err)) { in get_args() 319 boot = {}; in get_args() 321 stage = std::string(boot.stage); in get_args() 323 if (boot.command[0] != 0) { in get_args() 324 std::string boot_command = std::string(boot.command, sizeof(boot.command)); in get_args() 328 if (boot.status[0] != 0) { in get_args() 329 std::string boot_status = std::string(boot.status, sizeof(boot.status)); in get_args() 337 boot.recovery[sizeof(boot.recovery) - 1] = '\0'; // Ensure termination in get_args() 338 std::string boot_recovery(boot.recovery); in get_args() [all …]
|
/bootable/recovery/updater/ |
D | install.cpp | 881 bootloader_message boot; in RebootNowFn() local 883 if (!read_bootloader_message_from(&boot, filename, &err)) { in RebootNowFn() 887 memset(boot.command, 0, sizeof(boot.command)); in RebootNowFn() 888 if (!write_bootloader_message_to(boot, filename, &err)) { in RebootNowFn() 930 bootloader_message boot; in SetStageFn() local 932 if (!read_bootloader_message_from(&boot, filename, &err)) { in SetStageFn() 936 strlcpy(boot.stage, stagestr.c_str(), sizeof(boot.stage)); in SetStageFn() 937 if (!write_bootloader_message_to(boot, filename, &err)) { in SetStageFn() 958 bootloader_message boot; in GetStageFn() local 960 if (!read_bootloader_message_from(&boot, filename, &err)) { in GetStageFn() [all …]
|
/bootable/recovery/applypatch/ |
D | imgdiff_test.sh | 107 patch_and_apply boot.img
|