/system/extras/tests/bootloader/ |
D | bootloadertest.py | 19 import fastboot 29 cls.fastboot = fastboot.FastbootDevice() 54 val = self.fastboot.getvar(varname) 82 val = self.fastboot.getvar("slot-count") 96 var_all = self.fastboot.getvar_all() 136 self.assertIsNone(self.fastboot.getvar("fhqwhgads")) 181 self.fastboot.set_active(slot) 182 self.assertEqual(slot, self.fastboot.getvar("current-slot")) 183 self.assertEqual("no", self.fastboot.getvar("slot-unbootable:"+slot)) 184 self.assertEqual("no", self.fastboot.getvar("slot-successful:"+slot)) [all …]
|
/system/core/fastboot/device/ |
D | fastboot_device.cpp | 43 using ::android::hardware::fastboot::V1_1::IFastboot; 68 std::shared_ptr<aidl::android::hardware::fastboot::IFastboot> get_fastboot_service() { in get_fastboot_service() 69 using aidl::android::hardware::fastboot::IFastboot; in get_fastboot_service() 70 using HidlFastboot = android::hardware::fastboot::V1_1::IFastboot; in get_fastboot_service() 71 using aidl::android::hardware::fastboot::FastbootShim; in get_fastboot_service() 75 std::shared_ptr<IFastboot> fastboot = IFastboot::fromBinder(binder); in get_fastboot_service() local 76 if (fastboot != nullptr) { in get_fastboot_service() 78 return fastboot; in get_fastboot_service()
|
D | fastboot_device.h | 55 std::shared_ptr<aidl::android::hardware::fastboot::IFastboot> fastboot_hal() { in fastboot_hal() 68 std::shared_ptr<aidl::android::hardware::fastboot::IFastboot> fastboot_hal_;
|
/system/core/fastboot/ |
D | task.cpp | 131 if (fp->fb->GetVar("super-partition-name", &super_name) != fastboot::SUCCESS) { in Initialize() 137 if (fp->fb->GetVar("partition-size:" + super_name, &partition_size_str) != fastboot::SUCCESS) { in Initialize() 195 if (fp->fb->GetVar("super-partition-name", &super_name) != fastboot::SUCCESS) { in InitializeFromTasks() 200 if (fp->fb->GetVar("partition-size:" + super_name, &partition_size_str) != fastboot::SUCCESS) { in InitializeFromTasks() 257 if (fp_->fb->GetVar("super-partition-name", &super_name) != fastboot::RetCode::SUCCESS) { in Run() 292 if (fp_->fb->GetVar("partition-type:" + pname_, &partition_type) != fastboot::SUCCESS) { in Run() 297 if (fp_->fb->Erase(pname_) != fastboot::SUCCESS) { in Run()
|
D | fastboot.bash | 70 local devices=$(command fastboot devices 2> /dev/null | awk '{ print $1 }') 179 complete -F _fastboot fastboot 181 complete -o nospace -F _fastboot fastboot
|
D | Android.bp | 170 "android.hardware.fastboot@1.1", 171 "android.hardware.fastboot-V1-ndk", 251 // on the host fastboot tool, and shared libraries that link against libc++ 287 "fastboot.cpp", 313 "-header-filter=(system/core/fastboot/|development/host/windows/usb/api/)", 332 // Build host fastboot / fastboot.exe 336 name: "fastboot",
|
D | README.md | 4 The fastboot protocol is a mechanism for communicating with bootloaders 21 * Device will act as the server, fastboot will be the client. 193 fastbootd. Otherwise, it is running fastboot 234 The TCP protocol is designed to be a simple way to use the fastboot protocol 237 The device will open a TCP server on port 5554 and wait for a fastboot client 252 Once the handshake is complete, fastboot data will be sent as follows: 257 fastboot packet. The 8-byte length is intended to provide future-proofing even 258 though currently fastboot packets have a 4-byte maximum length. 261 In this example the fastboot host queries the device for two variables, 277 to ensure no packets are lost, but the general concept of wrapping the fastboot [all …]
|
D | fastboot.cpp | 116 fastboot::FastBootDriver* fb = nullptr; 820 if (fb->GetVar(var, &var_value) != fastboot::SUCCESS) { in CheckRequirement() 900 if (fb->GetVar("has-slot:" + partition_name, &has_slot) != fastboot::SUCCESS || in HandlePartitionExists() 919 if (fb->GetVar("product", &cur_product) != fastboot::SUCCESS) { in CheckRequirements() 956 if (fb->GetVar(var, &value) != fastboot::SUCCESS) { in DisplayVarOrError() 1000 if (fb->GetVar(var_name, &value_str) != fastboot::SUCCESS || value_str.empty()) { in get_uint_var() 1148 return fb->GetVar("partition-type:vbmeta", &partition_type) == fastboot::SUCCESS || in has_vbmeta_partition() 1149 fb->GetVar("partition-type:vbmeta_a", &partition_type) == fastboot::SUCCESS || in has_vbmeta_partition() 1150 fb->GetVar("partition-type:vbmeta_b", &partition_type) == fastboot::SUCCESS; in has_vbmeta_partition() 1163 return fb->GetVar("is-logical:" + partition, &value) == fastboot::SUCCESS && value == "yes"; in is_logical() [all …]
|
D | fastboot_driver_mock.h | 21 namespace fastboot {
|
D | fastboot_driver_interface.h | 24 namespace fastboot {
|
D | fastboot_driver_test.cpp | 25 using namespace fastboot;
|
/system/core/fs_mgr/tests/ |
D | adb-remount-test.sh | 118 fastboot devices | 427 timeout --preserve-status --signal=KILL ${1} fastboot wait-for-device >/dev/null 2>/dev/null 432 fastboot wait-for-device >/dev/null 2>/dev/null 511 fastboot reboot 562 local O=`fastboot getvar ${1} 2>&1` 840 -f | --wait-fastboot) 1001 fastboot reboot && 1454 adb reboot fastboot </dev/null || 1459 fastboot flash vendor "${TMPDIR}/vendor.img" || 1460 ( fastboot reboot && false) || [all …]
|
/system/core/fastboot/fuzzy_fastboot/ |
D | README.md | 4 validating device-side fastboot protocol implementations. 7 Any Android device that uses the fastboot protocol should have fuzzy fastboot run on it prior to 8 release to find implementation bugs, make sure it conforms to the fastboot spec, 13 The [fastboot protocol](../README.md) provides an easy way to manage low level 15 great responsibility. An improper or insecure fastboot implementation can 16 open the possibility for critical security exploits on the bootloader via fastboot 19 By checking a bootloader's conformance to the fastboot spec, as well as make sure 23 Additionally, since the fastboot tool itself must support a myriad of fastboot 25 avoid potential incompatibilities with the fastboot command line tool itself. 41 some basic tests that are generic to any fastboot device. These generic tests are [all …]
|
D | transport_sniffer.h | 40 namespace fastboot {
|
D | main.cpp | 61 namespace fastboot { namespace 167 return FastBootTest::MatchFastboot(info, fastboot::FastBootTest::device_serial); in TEST() 693 ASSERT_EQ(fastboot::RetCode::SUCCESS, ret) in TEST_F() 1869 const std::unordered_map<std::string, std::string> args = fastboot::ParseArgs(argc, argv, &err); in main() 1877 fastboot::SEARCH_PATH = (found != args.end()) ? found->second + "/" : ""; in main() 1879 fastboot::OUTPUT_PATH = (found != args.end()) ? found->second + "/" : "/tmp/"; in main() 1880 if (!fastboot::extension::ParseXml(fastboot::SEARCH_PATH + args.at("config"), in main() 1881 &fastboot::config)) { in main() 1886 fastboot::GenerateXmlTests(fastboot::config); in main() 1890 fastboot::FastBootTest::device_serial = args.at("serial"); in main() [all …]
|
D | test_utils.h | 43 namespace fastboot {
|
D | extensions.h | 36 namespace fastboot {
|
/system/core/bootstat/ |
D | boot_reason_test.sh | 37 fastboot devices | grep "^${ANDROID_SERIAL}[${SPACE}${TAB}]" > /dev/null 225 fastboot reboot 644 fastboot flashall >&2 752 fastboot format userdata >&2 757 fastboot reboot >&2 1336 fastboot devices
|
/system/sepolicy/prebuilts/api/34.0/private/ |
D | recovery.te | 16 # Set sys.usb.config when switching into fastboot.
|
D | fastbootd.te | 49 # Let this domain use the hal fastboot service
|
/system/sepolicy/prebuilts/api/33.0/private/ |
D | recovery.te | 16 # Set sys.usb.config when switching into fastboot.
|
/system/sepolicy/private/ |
D | recovery.te | 16 # Set sys.usb.config when switching into fastboot.
|
D | fastbootd.te | 49 # Let this domain use the hal fastboot service
|
/system/sepolicy/prebuilts/api/31.0/private/ |
D | recovery.te | 16 # Set sys.usb.config when switching into fastboot.
|
/system/sepolicy/prebuilts/api/32.0/private/ |
D | recovery.te | 16 # Set sys.usb.config when switching into fastboot.
|