/bootable/recovery/ |
D | recovery.cpp | 157 static bool yes_no(Device* device, const char* question1, const char* question2) { in yes_no() argument 161 size_t chosen_item = device->GetUI()->ShowMenu( in yes_no() 163 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in yes_no() 167 static bool ask_to_wipe_data(Device* device) { in ask_to_wipe_data() argument 171 size_t chosen_item = device->GetUI()->ShowPromptWipeDataConfirmationMenu( in ask_to_wipe_data() 173 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in ask_to_wipe_data() 178 static InstallResult prompt_and_wipe_data(Device* device) { in prompt_and_wipe_data() argument 198 size_t chosen_item = device->GetUI()->ShowPromptWipeDataMenu( in prompt_and_wipe_data() 200 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in prompt_and_wipe_data() 209 if (ask_to_wipe_data(device)) { in prompt_and_wipe_data() [all …]
|
D | recovery_main.cpp | 420 Device* device; in main() local 423 device = make_device(); in main() 426 device = (*make_device_func)(); in main() 431 device->ResetUI(new StubRecoveryUI()); in main() 433 if (!device->GetUI()->Init(locale)) { in main() 435 device->ResetUI(new StubRecoveryUI()); in main() 440 device->SetBootState(&boot_state); in main() 441 ui = device->GetUI(); in main() 444 device->RemoveMenuItemForAction(Device::WIPE_CACHE); in main() 448 device->RemoveMenuItemForAction(Device::ENTER_FASTBOOT); in main() [all …]
|
D | README.md | 33 # Running the tests on device (under normal boot). 37 # 32-bit device 40 # Or 64-bit device 49 - Execute the test on an A/B device first. The test should fail but it will log 52 - Reboot the device immediately and run the test again. The test should save the 61 allows `adb` communication. A device should be listed under `adb devices`, either in `recovery` or 75 ### `adb devices` doesn't show the device. 93 If `adbd` service has been started but device not shown under `adb devices`, use `lsusb(8)` (on 94 host) to check if the device is visible to the host. 108 If device is using [configfs](https://www.kernel.org/doc/Documentation/usb/gadget_configfs.txt), [all …]
|
D | recovery.h | 24 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args);
|
/bootable/recovery/tests/unit/ |
D | install_test.cpp | 174 std::string device = android::base::GetProperty("ro.product.device", ""); in VerifyAbUpdateCommands() local 175 ASSERT_NE("", device); in VerifyAbUpdateCommands() 179 std::vector<std::string> meta{ "ota-type=AB", "pre-device=" + device, in VerifyAbUpdateCommands() 225 std::string device = android::base::GetProperty("ro.product.device", ""); in TEST() local 226 ASSERT_NE("", device); in TEST() 231 "ota-type=AB", "pre-device=" + device, "post-timestamp=" + timestamp, in TEST() 299 std::string device = android::base::GetProperty("ro.product.device", ""); in TEST() local 300 ASSERT_NE("", device); in TEST() 305 "pre-device=" + device, in TEST() 315 "pre-device=" + device, in TEST() [all …]
|
/bootable/recovery/install/ |
D | fuse_install.cpp | 58 static std::string BrowseDirectory(const std::string& path, Device* device, RecoveryUI* ui) { in BrowseDirectory() argument 96 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in BrowseDirectory() 113 std::string result = BrowseDirectory(new_path, device, ui); in BrowseDirectory() 149 InstallResult InstallWithFuseFromPath(std::string_view path, Device* device) { in InstallWithFuseFromPath() argument 153 auto ui = device->GetUI(); in InstallWithFuseFromPath() 188 device); in InstallWithFuseFromPath() 208 InstallResult ApplyFromSdcard(Device* device) { in ApplyFromSdcard() argument 209 auto ui = device->GetUI(); in ApplyFromSdcard() 215 std::string path = BrowseDirectory(SDCARD_ROOT, device, ui); in ApplyFromSdcard() 230 auto result = InstallWithFuseFromPath(path, device); in ApplyFromSdcard()
|
D | wipe_data.cpp | 83 bool WipeData(Device* device, bool keep_memtag_mode, std::string_view data_fstype) { in WipeData() argument 84 RecoveryUI* ui = device->GetUI(); in WipeData() 89 if (!FinishPendingSnapshotMerges(device)) { in WipeData() 94 bool success = device->PreWipeData(); in WipeData() 116 success &= device->PostWipeData(); in WipeData()
|
D | wipe_device.cpp | 175 bool WipeAbDevice(Device* device, size_t wipe_package_size) { in WipeAbDevice() argument 176 auto ui = device->GetUI(); in WipeAbDevice() 185 return WipeAbDevice(device, wipe_package.get()); in WipeAbDevice() 188 bool WipeAbDevice(Device* device, Package* wipe_package) { in WipeAbDevice() argument 189 auto ui = device->GetUI(); in WipeAbDevice()
|
D | adb_install.cpp | 93 static auto AdbInstallPackageHandler(Device* device, InstallResult* result) { in AdbInstallPackageHandler() argument 98 auto ui = device->GetUI(); in AdbInstallPackageHandler() 118 *result = InstallPackage(package.get(), FUSE_SIDELOAD_HOST_PATHNAME, false, 0, device); in AdbInstallPackageHandler() 339 InstallResult ApplyFromAdb(Device* device, bool rescue_mode, Device::BuiltinAction* reboot_action) { in ApplyFromAdb() argument 348 RecoveryUI* ui = device->GetUI(); in ApplyFromAdb() 352 { MinadbdCommand::kInstall, std::bind(&AdbInstallPackageHandler, device, &install_result) }, in ApplyFromAdb() 371 command_map.emplace(MinadbdCommand::kWipeData, [&device]() { in ApplyFromAdb() 372 bool result = WipeData(device); in ApplyFromAdb()
|
D | install.cpp | 221 auto device = android::base::GetProperty("ro.product.device", ""); in CheckPackageMetadata() local 224 if (pkg_device.empty() || !isInStringList(device, pkg_device, FINGERPRING_SEPARATOR)) { in CheckPackageMetadata() 225 LOG(ERROR) << "Package is for product " << pkg_device << " but expected " << device; in CheckPackageMetadata() 378 static bool PerformPowerwashIfRequired(ZipArchiveHandle zip, Device *device) { in PerformPowerwashIfRequired() argument 382 return WipeData(device); in PerformPowerwashIfRequired() 390 int* max_temperature, Device* device) { in TryUpdateBinary() argument 391 auto ui = device->GetUI(); in TryUpdateBinary() 408 return WipeAbDevice(device, memory_package.get()) ? INSTALL_SUCCESS : INSTALL_ERROR; in TryUpdateBinary() 411 return WipeAbDevice(device, package) ? INSTALL_SUCCESS : INSTALL_ERROR; in TryUpdateBinary() 600 PerformPowerwashIfRequired(zip, device); in TryUpdateBinary() [all …]
|
D | snapshot_utils.cpp | 29 bool FinishPendingSnapshotMerges(Device* device) { in FinishPendingSnapshotMerges() argument 34 RecoveryUI* ui = device->GetUI(); in FinishPendingSnapshotMerges()
|
/bootable/libbootloader/gbl/libefi/src/ |
D | protocol.rs | 40 device: DeviceHandle, field 60 device: DeviceHandle, in new() 64 Self { device, interface, efi_entry } in new() 90 if self.device.0 != null_mut() { in drop() 91 self.efi_entry.system_table().boot_services().close_protocol::<T>(self.device).unwrap(); in drop()
|
/bootable/recovery/recovery_ui/ |
D | Android.bp | 33 "device.cpp", 57 // Generic device that uses ScreenRecoveryUI. 73 // The default wear device that uses WearRecoveryUI. 89 // The default VR device that uses VrRecoveryUI. 105 // The default device that uses EthernetRecoveryUI.
|
/bootable/recovery/fastboot/ |
D | fastboot.cpp | 66 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& /* args */) { in StartFastboot() argument 67 RecoveryUI* ui = device->GetUI(); in StartFastboot() 80 device->StartFastboot(); in StartFastboot() 98 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in StartFastboot()
|
/bootable/recovery/install/include/install/ |
D | fuse_install.h | 28 InstallResult InstallWithFuseFromPath(std::string_view path, Device* device); 30 InstallResult ApplyFromSdcard(Device* device);
|
D | wipe_device.h | 26 bool WipeAbDevice(Device* device, size_t wipe_package_size); 27 bool WipeAbDevice(Device* device, Package* wipe_package);
|
D | snapshot_utils.h | 21 bool FinishPendingSnapshotMerges(Device* device);
|
D | adb_install.h | 25 InstallResult ApplyFromAdb(Device* device, bool rescue_mode, Device::BuiltinAction* reboot_action);
|
/bootable/libbootloader/gbl/docs/ |
D | gbl_fastboot.md | 21 sub window and on any storage device. Specifically, the following semantics are 31 block device with ID `block id`. `block_id`, `offset` and `size` must be a 42 GPT partition "boot_a" on block device 0. 44 partition "boot_a" on block device 0. 46 GPT partition "boot_a" on block device 0. 57 of the raw data on the block device with ID `block_id`. `offset` defaults to
|
D | EFI_ANDROID_BOOT_PROTOCOL.md | 110 `FastbootUsbInterfaceStart()` shoud start and expose a device mode USB inteface 123 * The USB device descriptor should provide a valid serial number string 135 present as a USB device and thus communicate with a host. Future revision of 147 | EFI_DEVICE_ERROR | The physical device reported an error. | 175 Upon successful return, the device should no longer be visible as a Fastboot 176 device from the host. 185 | EFI_DEVICE_ERROR | The physical device reported an error.| 233 | EFI_DEVICE_ERROR | The physical device reported an error.| 284 | EFI_DEVICE_ERROR | The physical device reported an error.|
|
D | efi_protocols.md | 49 The DevicePathToText protocol converts device paths and nodes to text. 54 information about the image, including its device handle and device path.
|
/bootable/deprecated-ota/updater/ |
D | mounts.cpp | 33 std::string device; member 55 v->device = e->mnt_fsname; in scan_mounted_volumes()
|
/bootable/recovery/updater_sample/ |
D | README.md | 14 to select an update and apply it to the device. App shows installation progress, 28 to the app, but in this sample, the config files are stored on the device. 46 if `ab_config.force_switch_slot` set true device will boot to the 74 `UpdaterState` on a device. When app is resumed, it checks if `UpdaterState` 92 - `Reload` - reloads update configs from device storage. 157 ## Running on a device 165 2. Install the app to the device using `adb install <APK_PATH>`. 166 3. Change permissions on `/data/ota_package/` to `0777` on the device. 169 6. Push OTA packages to the device. 185 to `device/google/marlin/device-common.mk`. [all …]
|
/bootable/recovery/recovery_utils/ |
D | Android.bp | 53 // A utility lib that's local to recovery (in contrast, libotautil is exposed to device-specific 54 // recovery_ui lib as well as device-specific updater). 94 // Should avoid exposing to the libs that might be used in device-specific codes (e.g.
|
/bootable/libbootloader/gbl/ |
D | README.md | 52 to setup Vim3 as a Fuchsia device. 53 2. Reboot the device into fastboot mode. 97 -device virtio-blk-device,drive=blk0
|