Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 28) sorted by relevance

12

/bootable/recovery/
Drecovery.cpp161 static bool yes_no(Device* device, const char* question1, const char* question2) { in yes_no() argument
165 size_t chosen_item = device->GetUI()->ShowMenu( in yes_no()
167 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in yes_no()
171 static bool ask_to_wipe_data(Device* device) { in ask_to_wipe_data() argument
175 size_t chosen_item = device->GetUI()->ShowPromptWipeDataConfirmationMenu( in ask_to_wipe_data()
177 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in ask_to_wipe_data()
182 static InstallResult prompt_and_wipe_data(Device* device) { in prompt_and_wipe_data() argument
197 size_t chosen_item = device->GetUI()->ShowPromptWipeDataMenu( in prompt_and_wipe_data()
199 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in prompt_and_wipe_data()
208 if (ask_to_wipe_data(device)) { in prompt_and_wipe_data()
[all …]
Drecovery_main.cpp416 Device* device; in main() local
419 device = make_device(); in main()
422 device = (*make_device_func)(); in main()
427 device->ResetUI(new StubRecoveryUI()); in main()
429 if (!device->GetUI()->Init(locale)) { in main()
431 device->ResetUI(new StubRecoveryUI()); in main()
436 device->SetBootState(&boot_state); in main()
437 ui = device->GetUI(); in main()
440 device->RemoveMenuItemForAction(Device::WIPE_CACHE); in main()
444 device->RemoveMenuItemForAction(Device::ENTER_FASTBOOT); in main()
[all …]
DREADME.md33 # 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 …]
Drecovery.h24 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args);
/bootable/recovery/tests/unit/
Dinstall_test.cpp174 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/
Dfuse_install.cpp58 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()
Dwipe_data.cpp82 bool WipeData(Device* device) { in WipeData() argument
83 RecoveryUI* ui = device->GetUI(); in WipeData()
88 if (!FinishPendingSnapshotMerges(device)) { in WipeData()
93 bool success = device->PreWipeData(); in WipeData()
111 success &= device->PostWipeData(); in WipeData()
Dadb_install.cpp93 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()
Dinstall.cpp210 auto device = android::base::GetProperty("ro.product.device", ""); in CheckPackageMetadata() local
213 if (pkg_device.empty() || !isInStringList(device, pkg_device, FINGERPRING_SEPARATOR)) { in CheckPackageMetadata()
214 LOG(ERROR) << "Package is for product " << pkg_device << " but expected " << device; in CheckPackageMetadata()
367 static bool PerformPowerwashIfRequired(ZipArchiveHandle zip, Device *device) { in PerformPowerwashIfRequired() argument
371 return WipeData(device); in PerformPowerwashIfRequired()
379 int* max_temperature, Device* device) { in TryUpdateBinary() argument
380 auto ui = device->GetUI(); in TryUpdateBinary()
397 return WipeAbDevice(device, memory_package.get()) ? INSTALL_SUCCESS : INSTALL_ERROR; in TryUpdateBinary()
400 return WipeAbDevice(device, package) ? INSTALL_SUCCESS : INSTALL_ERROR; in TryUpdateBinary()
589 PerformPowerwashIfRequired(zip, device); in TryUpdateBinary()
[all …]
Dwipe_device.cpp175 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()
Dsnapshot_utils.cpp29 bool FinishPendingSnapshotMerges(Device* device) { in FinishPendingSnapshotMerges() argument
34 RecoveryUI* ui = device->GetUI(); in FinishPendingSnapshotMerges()
/bootable/recovery/fastboot/
Dfastboot.cpp39 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& /* args */) { in StartFastboot() argument
40 RecoveryUI* ui = device->GetUI(); in StartFastboot()
55 device->StartFastboot(); in StartFastboot()
73 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in StartFastboot()
Dfastboot.h24 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& args);
/bootable/recovery/recovery_ui/
DAndroid.bp33 "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/install/include/install/
Dfuse_install.h28 InstallResult InstallWithFuseFromPath(std::string_view path, Device* device);
30 InstallResult ApplyFromSdcard(Device* device);
Dwipe_device.h26 bool WipeAbDevice(Device* device, size_t wipe_package_size);
27 bool WipeAbDevice(Device* device, Package* wipe_package);
Dsnapshot_utils.h21 bool FinishPendingSnapshotMerges(Device* device);
Dadb_install.h25 InstallResult ApplyFromAdb(Device* device, bool rescue_mode, Device::BuiltinAction* reboot_action);
Dwipe_data.h30 bool WipeData(Device* device);
/bootable/recovery/updater_sample/
DREADME.md14 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/updater/
Dmounts.cpp33 std::string device; member
55 v->device = e->mnt_fsname; in scan_mounted_volumes()
/bootable/recovery/recovery_utils/
DAndroid.bp53 // 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/recovery/tools/recovery_l10n/
DREADME.md7 2. Install the app on the device (or emulator) with the intended dpi.
22 file from the device.
/bootable/recovery/tests/
DAndroid.bp135 test_suites: ["device-tests"],
183 test_suites: ["device-tests"],
/bootable/recovery/minadbd/
DREADME.md20 - `minadbd` handles some requests directly, e.g. querying device properties for rescue service.

12