91fefadc2e99ffd7e6fb12637dcf94df547cdb89 |
|
27-Jan-2017 |
Jocelyn Bohr <bohr@google.com> |
fastboot: Add 'get_staged' command (cherry-picked from internal nyc-iot-dev to AOSP) New user-level command usage: * fastboot get_staged <outfile> Reads staged data from the last command handled by the device. If the last command did not result in staged data, this command will fail. This enables data staged by OEM commands to be transferred from device to host. get_staged wraps new device command "upload". Fastboot clients are not required to support "upload", so get_staged won't work on all devices. Bug: 36002804 Test: Implemented "upload" in fastboot on imx6ul. Verified that uploading ~100K data from the device works. Change-Id: I5b1a1ce023f362062505ee62746ea8ab6f36bfbf (cherry-picked from commit 83a875de994bf48f0faa2a8a23ceb0b8f52b6b04)
/system/core/fastboot/protocol.cpp
|
0ea946c007cf76a96d867ba3e96505f72639960e |
|
12-Apr-2017 |
Chris Fries <cfries@google.com> |
fastboot: Support larger transfers during flash Adding methods to queue and download flashable images by fd instead of by pointer, so that we can deal with sending large (up to 4GB) files on windows and linux. This gets past limitations on linux to read more than 2GB from a file at a time, as well as memory limitations on win32, in order to download up to 4GB in a single transfer. Test: fastboot -w Test: "flash-all" from nexus factory images site (incl. fastboot -w update) Test: fastboot flash with large and small image, large and small max-download-size Test: Sanity check flashing on win32, darwin, linux. Test: Sanity check 3GB image download (with 3GB max-download-size) on win32, darwin, linux. Bug: 36810152 Change-Id: I528d739d344eb080d59d721dadf3b3b34d4b375e
/system/core/fastboot/protocol.cpp
|
6a99971096a9c5a6752f494db1d9b57d4ab77af2 |
|
04-Apr-2017 |
Chris Fries <cfries@google.com> |
fastboot: Cap max size sent to libsparse This is required for large (>INT_MAX) sparse limit reported by the target. Also, patch up return chains of "int" that need to deal with sizes bigger than 2GB as well as return negative error codes. Test: -S works with large max-download-size Test: Flash 3GB system.img with max-download-size 2.5GB Bug: 36810152 Change-Id: I562a50eabd706bd5b97c71a1aef07c1ffd1a2e5c
/system/core/fastboot/protocol.cpp
|
2810d00dd95ed78fdd93f2ed68f06ee32bd8e1ac |
|
25-Apr-2016 |
Elliott Hughes <enh@google.com> |
Use more std::string in fastboot. Change-Id: Ic8c77eac1e0088627ab650050d9c97c5749e5c39
/system/core/fastboot/protocol.cpp
|
79bf64dc66e01797eb85fc67f43fa867d6131e58 |
|
24-Apr-2016 |
Raja M <raja1612.m@gmail.com> |
GCC compiler warning fix for sprintf into snprintf To fix GCC WARNINGS while building. or To support error free -D_FORTIFY_SOURCE=2 strict mode compilation.
/system/core/fastboot/protocol.cpp
|
0b156638307db890e5539b52521fd24beb3440cb |
|
30-Oct-2015 |
David Pursell <dpursell@google.com> |
fastboot: create Transport object (take 2). (Second upload of this CL; original upload had the wrong version of usb_windows.cpp that caused a compilation error. Fixed error and re-tested.) This CL creates a Transport object to provide a generic interface for various transports. Specifically this is designed to be able to add UDP support to fastboot in an upcoming CL without changing the main program logic. Also includes some minor code style fixes and replaces malloc/free in the USB implementation files with smart pointers and std::string. Bug: http://b/22029765 Change-Id: I1175bbce08690fbd15f51e68166be9b3e9973ea0
/system/core/fastboot/protocol.cpp
|
c0504e18734ee87e737eb9d80311f5c3478974c3 |
|
14-Nov-2015 |
David Pursell <dpursell@google.com> |
Revert "fastboot: create Transport object." This broke some stuff, will look into it Monday. This reverts commit 6f233a7799a681e65c539e9c8287db0814c8948f. Change-Id: I155bc85d21fda3b0ba1e5e17839059797fb15509
/system/core/fastboot/protocol.cpp
|
6f233a7799a681e65c539e9c8287db0814c8948f |
|
30-Oct-2015 |
David Pursell <dpursell@google.com> |
fastboot: create Transport object. This CL creates a Transport object to provide a generic interface for various transports. Specifically this is designed to be able to add UDP support to fastboot in an upcoming CL without changing the main program logic. Also includes some minor code style fixes and replaces malloc/free in the USB implementation files with smart pointers and std::string. Bug: http://b/22029765 Change-Id: I68641af0da7d13db4647f5e20a18d04d67f0b327
/system/core/fastboot/protocol.cpp
|
fc79767fc26d8782403e7b1afa7b93d518a86b19 |
|
08-Apr-2015 |
Elliott Hughes <enh@google.com> |
Use 64-bit file sizes in fastboot. Bug: 20110580 Change-Id: I5d3718103ff581ff3b5241c8b0e52b585b4f37e5
/system/core/fastboot/protocol.cpp
|
b3748de33f651597259f52e4645571a1da2e32dd |
|
24-Jun-2015 |
Elliott Hughes <enh@google.com> |
Move fastboot to C++. Minimal conversion. Change-Id: I32cbf125be481a8757720d10fa303c38a7fd5e38
/system/core/fastboot/protocol.cpp
|