/bootable/recovery/tests/unit/ |
D | bootloader_message_test.cpp | 34 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 …]
|
D | uncrypt_test.cpp | 131 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 …]
|
D | updater_test.cpp | 536 bootloader_message boot; in TEST_F() local 537 strlcpy(boot.stage, "2/3", sizeof(boot.stage)); in TEST_F() 539 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err)); in TEST_F() 559 bootloader_message boot; in TEST_F() local 560 strlcpy(boot.command, "command", sizeof(boot.command)); in TEST_F() 561 strlcpy(boot.stage, "2/3", sizeof(boot.stage)); in TEST_F() 563 ASSERT_TRUE(write_bootloader_message_to(boot, temp_file, &err)); in TEST_F() 575 ASSERT_STREQ(boot.command, boot_verify.command); in TEST_F()
|
/bootable/recovery/bootloader_message/ |
D | bootloader_message.cpp | 147 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device, in read_bootloader_message_from() argument 149 return read_misc_partition(boot, sizeof(*boot), misc_blk_device, in read_bootloader_message_from() 153 bool read_bootloader_message(bootloader_message* boot, std::string* err) { in read_bootloader_message() argument 158 return read_bootloader_message_from(boot, misc_blk_device, err); in read_bootloader_message() 161 bool write_bootloader_message_to(const bootloader_message& boot, const std::string& misc_blk_device, in write_bootloader_message_to() argument 163 return write_misc_partition(&boot, sizeof(boot), misc_blk_device, in write_bootloader_message_to() 167 bool write_bootloader_message(const bootloader_message& boot, std::string* err) { in write_bootloader_message() argument 172 return write_bootloader_message_to(boot, misc_blk_device, err); in write_bootloader_message() 176 bootloader_message boot = {}; in clear_bootloader_message() local 177 return write_bootloader_message(boot, err); in clear_bootloader_message() [all …]
|
/bootable/recovery/ |
D | recovery_main.cpp | 95 bootloader_message boot = {}; in get_args() local 97 if (!read_bootloader_message(&boot, &err)) { in get_args() 100 boot = {}; in get_args() 103 *stage = std::string(boot.stage); in get_args() 107 if (boot.command[0] != 0) { in get_args() 108 if (memchr(boot.command, '\0', sizeof(boot.command))) { in get_args() 109 boot_command = std::string(boot.command); in get_args() 111 boot_command = std::string(boot.command, sizeof(boot.command)); in get_args() 116 if (boot.status[0] != 0) { in get_args() 117 std::string boot_status = std::string(boot.status, sizeof(boot.status)); in get_args() [all …]
|
D | README.md | 7 * Devices using recovery-as-boot (e.g. Pixels, which set BOARD\_USES\_RECOVERY\_AS\_BOOT) 13 # Pixel devices don't support booting into recovery mode with `fastboot boot`. 14 fastboot flash boot 24 # To boot into the new recovery image without flashing the recovery partition: 25 fastboot boot $ANDROID_PRODUCT_OUT/recovery.img 33 # Running the tests on device (under normal boot). 68 Although `/system/bin/adbd` is built from the same code base as the one in the normal boot, only a 120 recovery image doesn't honor the USB debugging toggle and the authorizations added under normal boot 137 Note that this mechanism applies to both of normal boot and recovery modes.
|
D | Android.bp | 95 "android.hardware.boot@1.0", 96 "android.hardware.boot@1.1",
|
D | CleanSpec.mk | 70 …PRODUCT_OUT)/obj/PACKAGING/target_files_intermediates/*-target_files-*/SYSTEM/recovery-from-boot.p)
|
/bootable/recovery/bootloader_message/include/bootloader_message/ |
D | bootloader_message.h | 128 bool read_bootloader_message(bootloader_message* boot, std::string* err); 131 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device, 135 bool write_bootloader_message(const bootloader_message& boot, std::string* err); 138 bool write_bootloader_message_to(const bootloader_message& boot, 156 bool update_bootloader_message_in_struct(bootloader_message* boot,
|
/bootable/recovery/updater/ |
D | install.cpp | 728 bootloader_message boot; in RebootNowFn() local 730 if (!read_bootloader_message_from(&boot, filename, &err)) { in RebootNowFn() 734 memset(boot.command, 0, sizeof(boot.command)); in RebootNowFn() 735 if (!write_bootloader_message_to(boot, filename, &err)) { in RebootNowFn() 772 bootloader_message boot; in SetStageFn() local 774 if (!read_bootloader_message_from(&boot, filename, &err)) { in SetStageFn() 778 strlcpy(boot.stage, stagestr.c_str(), sizeof(boot.stage)); in SetStageFn() 779 if (!write_bootloader_message_to(boot, filename, &err)) { in SetStageFn() 800 bootloader_message boot; in GetStageFn() local 802 if (!read_bootloader_message_from(&boot, filename, &err)) { in GetStageFn() [all …]
|
/bootable/recovery/update_verifier/ |
D | Android.bp | 58 "android.hardware.boot@1.0", 89 "android.hardware.boot@1.0",
|
D | update_verifier.cpp | 70 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/tests/unit/host/ |
D | update_simulator_test.cpp | 355 string boot_img_string = "boot.img"; 360 { "IMAGES/boot.img", boot_img_string }, 372 "EMMC:/dev/block/by-name/boot:%zu:%s", boot_img_string.size(), boot_sha1.c_str());
|
/bootable/recovery/etc/ |
D | init.rc | 41 on boot 61 trigger early-boot 62 trigger boot
|
/bootable/recovery/updater_sample/ |
D | README.md | 46 if `ab_config.force_switch_slot` set true device will boot to the
|
/bootable/recovery/tests/testdata/ |
D | recovery_body | 10 pm.dexopt.first-boot=interpret-only 11 pm.dexopt.boot=verify-profile 144 dalvik.vm.boot-dex2oat-threads=4 176 /dev/block/platform/soc.0/f9824900.sdhci/by-name/boot /boot emmc defaults … 2258 …yYu:object_r:hal_boot_exec:s04/system/bin/hw/android\.hardware\.boot@1\.0-service… 2726 …ot_block_device:s08/dev/block/platform/soc\.0/f9824900\.sdhci/by-name/boot7;… 2787 /dev/block/platform/soc.0/f9824900.sdhci/by-name/boot /boot emmc defaults … 2849 on boot 2878 trigger early-boot 2879 trigger boot
|