summaryrefslogtreecommitdiff
path: root/fastboot/fuzzy_fastboot
AgeCommit message (Collapse)Author
2021-03-17fuzzy_fastboot: Add tests for fetch:vendor_bootYifan Hong
Test: run test against bootloader Test: run test against fastbootd Bug: 173654501 Change-Id: Ia3182b4f4390048139d2cafe9b1654b6fb92eb7b
2021-03-17fuzzy_fastboot: Add conformance test for getvar:max-fetch-size.Yifan Hong
Test: run against bootloader Test: run against fastbootd Bug: 173654501 Change-Id: Ide38eee6b801110fef52f0f9213c038a72c775f2
2021-02-19[LSC] Add LOCAL_LICENSE_KINDS to system/coreBob Badour
Added SPDX-license-identifier-Apache-2.0 to: bootstat/Android.bp cli-test/Android.bp code_coverage/Android.bp cpio/Android.bp debuggerd/crasher/Android.bp debuggerd/proto/Android.bp diagnose_usb/Android.bp fs_mgr/libdm/Android.bp fs_mgr/libfiemap/Android.bp fs_mgr/liblp/Android.bp fs_mgr/libsnapshot/Android.bp fs_mgr/libstorage_literals/Android.bp fs_mgr/libvbmeta/Android.bp fs_mgr/tests/Android.bp fs_mgr/tools/Android.bp gatekeeperd/Android.bp healthd/Android.bp healthd/testdata/Android.bp init/Android.bp init/Android.mk init/sysprop/Android.bp init/test_kill_services/Android.bp init/test_service/Android.bp libappfuse/Android.bp libasyncio/Android.bp libbinderwrapper/Android.bp libcrypto_utils/Android.bp libcrypto_utils/tests/Android.bp libdiskconfig/Android.bp libgrallocusage/Android.bp libkeyutils/mini_keyctl/Android.bp libmodprobe/Android.bp libnetutils/Android.bp libpackagelistparser/Android.bp libprocessgroup/Android.bp libprocessgroup/cgrouprc/Android.bp libprocessgroup/cgrouprc_format/Android.bp libprocessgroup/profiles/Android.bp libprocessgroup/setup/Android.bp libqtaguid/Android.bp libsparse/Android.bp libstats/push_compat/Android.bp libsuspend/Android.bp libsync/Android.bp libsystem/Android.bp libsysutils/Android.bp libusbhost/Android.bp libutils/Android.bp libvndksupport/Android.bp libvndksupport/tests/Android.bp llkd/Android.bp llkd/tests/Android.bp property_service/libpropertyinfoparser/Android.bp property_service/libpropertyinfoserializer/Android.bp property_service/property_info_checker/Android.bp qemu_pipe/Android.bp reboot/Android.bp rootdir/Android.bp rootdir/Android.mk rootdir/avb/Android.bp rootdir/avb/Android.mk run-as/Android.bp sdcard/Android.bp set-verity-state/Android.bp shell_and_utilities/Android.bp storaged/Android.bp toolbox/Android.bp trusty/apploader/Android.bp trusty/confirmationui/Android.bp trusty/confirmationui/fuzz/Android.bp trusty/coverage/Android.bp trusty/fuzz/Android.bp trusty/fuzz/test/Android.bp trusty/gatekeeper/Android.bp trusty/gatekeeper/fuzz/Android.bp trusty/keymaster/Android.bp trusty/keymaster/fuzz/Android.bp trusty/libtrusty/Android.bp trusty/libtrusty/tipc-test/Android.bp trusty/secure_dpu/Android.bp trusty/storage/interface/Android.bp trusty/storage/lib/Android.bp trusty/storage/proxy/Android.bp trusty/storage/tests/Android.bp trusty/utils/spiproxyd/Android.bp trusty/utils/trusty-ut-ctrl/Android.bp usbd/Android.bp watchdogd/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: debuggerd/Android.bp fastboot/Android.bp libkeyutils/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT to: libcutils/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: fs_mgr/Android.bp fs_mgr/libfs_avb/Android.bp trusty/Android.bp trusty/utils/rpmb_dev/Android.bp Added SPDX-license-identifier-BSD to: fastboot/fuzzy_fastboot/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Id740a7d2884556081fdb68876584b25eb95e1bef
2021-02-16Revert "[LSC] Add LOCAL_LICENSE_KINDS to system/core"Elliott Hughes
This reverts commit 187b7d19504ca8bdcbc6217c06a117017b4c6287. Reason for revert: system/core is multiple projects, not one. Change-Id: I790ea41741f8cd9b8b6db2f59a49e71fb0958fd6
2021-02-16[LSC] Add LOCAL_LICENSE_KINDS to system/coreBob Badour
Added SPDX-license-identifier-Apache-2.0 to: bootstat/Android.bp cli-test/Android.bp code_coverage/Android.bp cpio/Android.bp debuggerd/crasher/Android.bp debuggerd/proto/Android.bp diagnose_usb/Android.bp fs_mgr/libdm/Android.bp fs_mgr/libfiemap/Android.bp fs_mgr/liblp/Android.bp fs_mgr/libsnapshot/Android.bp fs_mgr/libstorage_literals/Android.bp fs_mgr/libvbmeta/Android.bp fs_mgr/tests/Android.bp fs_mgr/tools/Android.bp gatekeeperd/Android.bp healthd/Android.bp healthd/testdata/Android.bp init/Android.bp init/Android.mk init/sysprop/Android.bp init/test_kill_services/Android.bp init/test_service/Android.bp libappfuse/Android.bp libasyncio/Android.bp libbinderwrapper/Android.bp libcrypto_utils/Android.bp libcrypto_utils/tests/Android.bp libdiskconfig/Android.bp libgrallocusage/Android.bp libkeyutils/mini_keyctl/Android.bp libmodprobe/Android.bp libnetutils/Android.bp libpackagelistparser/Android.bp libprocessgroup/Android.bp libprocessgroup/cgrouprc/Android.bp libprocessgroup/cgrouprc_format/Android.bp libprocessgroup/profiles/Android.bp libprocessgroup/setup/Android.bp libqtaguid/Android.bp libsparse/Android.bp libstats/push_compat/Android.bp libsuspend/Android.bp libsync/Android.bp libsystem/Android.bp libsysutils/Android.bp libusbhost/Android.bp libutils/Android.bp libvndksupport/Android.bp libvndksupport/tests/Android.bp llkd/Android.bp llkd/tests/Android.bp property_service/libpropertyinfoparser/Android.bp property_service/libpropertyinfoserializer/Android.bp property_service/property_info_checker/Android.bp qemu_pipe/Android.bp reboot/Android.bp rootdir/Android.bp rootdir/Android.mk rootdir/avb/Android.bp rootdir/avb/Android.mk run-as/Android.bp sdcard/Android.bp set-verity-state/Android.bp shell_and_utilities/Android.bp storaged/Android.bp toolbox/Android.bp trusty/apploader/Android.bp trusty/confirmationui/Android.bp trusty/confirmationui/fuzz/Android.bp trusty/coverage/Android.bp trusty/fuzz/Android.bp trusty/fuzz/test/Android.bp trusty/gatekeeper/Android.bp trusty/gatekeeper/fuzz/Android.bp trusty/keymaster/Android.bp trusty/keymaster/fuzz/Android.bp trusty/libtrusty/Android.bp trusty/libtrusty/tipc-test/Android.bp trusty/secure_dpu/Android.bp trusty/storage/interface/Android.bp trusty/storage/lib/Android.bp trusty/storage/proxy/Android.bp trusty/storage/tests/Android.bp trusty/utils/spiproxyd/Android.bp trusty/utils/trusty-ut-ctrl/Android.bp usbd/Android.bp watchdogd/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: debuggerd/Android.bp fastboot/Android.bp libkeyutils/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-MIT to: Android.bp libcutils/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT to: fs_mgr/Android.bp fs_mgr/libfs_avb/Android.bp trusty/utils/rpmb_dev/Android.bp Added SPDX-license-identifier-BSD to: fastboot/fuzzy_fastboot/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I5bd81adb5cdcf2b4dd4141b204eb430ff526af8f
2020-07-23Use more inclusive language for #inclusivefixitHongguang Chen
Updating language to comply with Android’s inclusive language guidance. See https://source.android.com/setup/contribute/respectful-code for reference. Bug: 161896447 Test: Trivial changes Change-Id: Ia84d47930b5d9ca4a5f7c809777c886bece4f512
2020-06-03fuzzy_fastboot: use 'tcp:' prefix to identify fastboot protocol.Hongguang Chen
The fastbootd over ethernet was implemented with IPv6 link-local address. An IPv6 address may include many ':'. It will break this fuzzy test. This new solution uses "tcp:" prefix to identify the fastboot protocol, like the host fastboot command. BUG: 158040108 Test: fuzzy_fastboot --serial=tcp:fe80::230:1bff:feba:8128%wlan0 \ --gtest_filter=*Logical* Change-Id: I971fd9e25741e18bf7f5907d562556b09db1d624
2020-04-07Rename vts-core to vtsDan Shi
Bug: 151896491 Test: local build Exempt-From-Owner-Approval: This CL moves all tests in vts-core to vts. It won't change test logic or behavior. Change-Id: I24779951257ce37fc18929f214d3cf5f76c23a19 Merged-In: I24779951257ce37fc18929f214d3cf5f76c23a19
2020-03-11Restore fastboot delete-logical-partition command for VTSyongcheol.lee
1. delete-logical-partition was deleted - After merge "Don't require bootloader fastboot for VTS compliance." commit, delete-logical-partition sequence was deleted in LogicalPartitionCompliance test. "create-logical-partition failed" is occurred when run vts fastbootverification module. So restore this sequence. Signed-off-by: Yongcheol LEE <yongcheol09.lee@lge.com> Test: VTS Test: run vts -m VtsFastbootVerification Change-Id: I00366b281eafa5677b0941419a86f2702fb3484b
2020-02-06Don't require bootloader fastboot for VTS compliance.David Anderson
Bug: 144820025 Test: vts Change-Id: Ib99ddbe611645fe0f89134a628ddb486b02df170
2020-01-21Allow fuzzy_fastboot test devices over internetsteven_fann
Bug: 144667236 Test: fuzzy_fastboot --serial=192.168.1.104:5555 --gtest_filter=*Logical* Change-Id: I02e62f706d0a3a19a9b7b56788abe05759d2d63d
2020-01-09Add libc++ as static libraryDan Shi
This is for the test to run without packaging libc++.so in vts-core suite. Bug: 147249791 Test: atest FastbootVerifyUserspaceTest Change-Id: I0263d13a2dd08186502b30b2fad25d4f0f3a6be8
2020-01-06Add fuzzy_fastboot to vts-core suiteDan Shi
The binary is required by FastbootVerifyUserspaceTest. Disable test config generation as fuzzy_fasboot itself is not part of vts-core suite. Bug: 147249791 Test: atest FastbootVerifyUserspaceTest Change-Id: Ief86f33b41990a354497b128e154da04fec58ae9
2019-05-14Allow CreateResizeDeleteLP test case to run on non-A/B devicesHridya Valsaraju
Test: fuzzy_fastboot --gtest_filter=*Logical* Bug: 117220134 Change-Id: Ic7c2b246b7c5646d3589f8f57eceb9ba5feeef2b
2019-04-11Merge "Allow fuzzy_fastboot number to run for a specific device serial number"Treehugger Robot
2019-04-11Allow fuzzy_fastboot number to run for a specific device serial numberHridya Valsaraju
Test: ./fuzzy_fastboot --serial=826X003L --gtest_filter=*Logical* Bug: 117181762 Change-Id: I9dec510aa604b7994f25ce26edb87d7f6ec3e875
2019-04-05Test is-logical command for vendor and boot partitions.Hridya Valsaraju
Vendor must be a logical partition and boot must not be a logical partition. Test: fuzzy_fastboot --gtest_filter=*Logical* Bug: 117220134 Change-Id: Ifc6f2f715ca92cd1fe779e8fce2d6a10a1f140b9
2019-03-22Merge "Fuzzy_fastboot must set back the original slot after test"Hridya Valsaraju
2019-03-19Add more tests for dynamic partitionsHridya Valsaraju
Test: ./fuzzy_fastboot --gtest_filter=LogicalPartitionCompliance* Bug: 117220134 Change-Id: Ica489b0f9b252b2981cd44676bb892ded977de22
2019-03-19Add a test for logical partitions.Hridya Valsaraju
Test: ./fuzzy_fastboot --gtest_filter=LogicalPartitionCompliance* Bug: 117220134 Change-Id: Ib68f98ec5c8c402f9a80139134a0118ab65f8cd3
2019-03-18Fuzzy_fastboot must set back the original slot after testHridya Valsaraju
Test: ./fuzzy_fastboot --gtest_filter=Conformance.SetActive Bug: 117220134 Change-Id: I1fb6975dda52ace3e6d2a81a50cba5ff55310818
2018-12-11Fix performance-for-range-copy warningsChih-Hung Hsieh
Bug: 30413223 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance* Change-Id: I3ad102f2b0f971266d57488a3bd57d312f7ee3e6
2018-11-20fastboot: Warn when flashing dynamic partitions in the bootloader.David Anderson
On retrofit devices, it is easy to accidentally overwrite system/vendor/product by flashing system in the bootloader. The reason is that GPT system_a is really the super partition, and the bootloader doesn't know it. Addressing this in bootloaders would require two separate commands: one that rejects flashing system/vendor/product, and another for expert/factory use that would allow direct flashing. This patch introduces protection into the host fastboot tool instead. It's not mutually exclusive with bootloader changes; having protection in the host tool affords us better and consistent UI. However it does rely on users having newer builds. With this change, the following will not work in the bootloader: fastboot flash system # or vendor, product, etc The message is the same whether or not the device is a retrofit. To continue anyway, you can do: fastboot flash --force system If we decide on bootloader protection as well, the --force flag can be re-used. Bug: 119689480 Test: fastboot flash system # disallowed in bootloader, allowed in fastbootd fastboot flash --force system # allowed in bootloader Change-Id: I0861e3f28a15be925886d5c30c7ebd4b20c477cf
2018-10-18fastboot: use constants.h valuesMark Salyzyn
Cleanup to utilize all the manifest values in constants.h. If the cli command _and_ the protocol name match, use a common source of convenient truth. This should set a pattern for future additional commands. When the command and the protocol differ, we want to introduce resistance as it results in confusion and maintenance issues. Test: compile Change-Id: Idad413c63cbbfcb6e851856105a5d5a9ef53ef29
2018-10-09Return partition size in hex format.Hridya Valsaraju
This is required to pass fuzzy_fastboot conformance tests. Also, allow for zero sized partitions in fuzzy_fastboot. Test: ./fuzzy_fastboot --gtest_filter=Conformance.Slots Bug: 117220134 Change-Id: Ifb12994a7796b081215084cb68b37674210aaa12
2018-10-05Allow Conformance tests to verify userspace fastboot.Hridya Valsaraju
Bug: 117220134 Test: ./fuzzy_fastboot --gtest_filter=Conformance.* Change-Id: Iab04fdff71e7e90a56d53d24cf14e94c81131009
2018-10-02Merge "Remove tests for sparse images with CRC from fuzzy_fastboot"Treehugger Robot
2018-10-02Remove tests for sparse images with CRC from fuzzy_fastbootHridya Valsaraju
Sparse images with CRC are currently not supported by the Android build system. Test: ./fuzzy_fastboot --gtest_filter=Conformance.* Change-Id: I6a73fb0dc5d4c77a3d1a0384c137789eb06fa956
2018-09-25fastboot: remove engine.cpp/engine.hTom Cherry
Replace the remnants of engine.cpp with better functionality in FastBootDriver. Particularly, add prolog() and epilog() callbacks to FastBootDriver for printing actions and their result to the console. Then clean up the rest of fastboot.cpp to directly use FastBootDriver. Test: fastboot works Change-Id: I0ff01d6a10f75e9dc1c82b46c6e9bb3bc4c68638
2018-09-06UsbTransportSniffer: Defensively use 'final'Greg Kaiser
UsbTransportSniffer invokes the virtual method Close() within its destructor. This usage is fine right now, but if a future class inherited from UsbTransportSniffer and overrode the Close() method, then this destructor would not act as expected. To protect against this, we declare Close() 'final' in UsbTransportSniffer, and add a comment. Test: Treehugger Change-Id: I6182d84e7caf67cb06f37c22c6203ad6d6e57f34
2018-09-05fastbootd: Perform CRC check when flashing sparse images.David Anderson
Bug: 78793464 Test: fuzzy_fastboot Conformance.SparseCRCCheck passes Change-Id: I717fbec42599a43bafafa1f73837e115a9f9109a
2018-09-04fastbootd: Fix partition size testing issues.David Anderson
Partition sizes must be reported with an "0x" prefix for fuzzy_fastboot. Also, with dynamic partitions, the size of a partition can be 0. Bug: 78793464 Test: fuzzy_fastboot Conformance.PartitionInfo does not error on partition sizes when using fastbootd Change-Id: I4148440bd9ed420878940829618cbf8cee85bf6a
2018-09-04fuzzy_fastboot: Use uint64_t for partition sizes.David Anderson
Bug: N/A Test: fuzzy_fastboot Conformance.PartitionInfo passes Change-Id: I27182585a1522d22dd3ddfe83ce22e06dd7fc762
2018-09-04fastbootd: Fix transport ownership.David Anderson
This change moves Transport ownership back out of FastBootDriver. Callers of set_transport must ensure that the previous transport is destroyed. In addition, deleting a transport now ensures that it is closed. Bug: 78793464 Test: fastboot, fuzzy_fastboot works Change-Id: I8f9ed2f7d5b09fd0820b2677d087a027378f26db
2018-08-29fastboot: remove 'verify'Tom Cherry
This isn't sent by the fastboot client. This isn't in our bootloader requirement document. Neither my hikey nor sailfish respond to this. Test: fastboot still works Change-Id: I11ff0aed818d98f3427ed427605d99b3c76ccb06
2018-08-29fastboot: remove 'powerdown'Tom Cherry
This isn't sent by the fastboot client. This isn't in our bootloader requirement document. Neither my hikey nor sailfish respond to this. The README.md literally uses this as an example for 'unknown command' Test: fastboot still works. Change-Id: Ia442a41de517dae078dd7e73c951aadb97646c73
2018-08-24Merge "Added support to fuzzy_fastboot for more sparse tests"Treehugger Robot
2018-08-24Added support to fuzzy_fastboot for more sparse testsAaron Wisner
Test: Pixel 2 Change-Id: Ibd491336ace4f346c3900a61bca30ac3023e4f21
2018-08-24Fix mac build breakage due to missing usb_osx.cpp inAaron Wisner
Android.cpp file for libfastboot2 https://android-review.googlesource.com/c/platform/system/core/+/722153 Test: Build on osx Change-Id: I6151e37581ac332e4d5cfb5e40feb3ea0e3093df
2018-08-22Create fuzzy-fastboot pen testerAaron Wisner
Test: Run on Sailfish, Walleye, and other devices Bug: http://b/111126621 Change-Id: I309af79411d0a16d11874a048ce0db024770d7b2