History log of /system/update_engine/common/file_fetcher.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8b01f44bf61c5cceb83b2ff4f2c0070a9ab946d7 21-Jul-2016 Alex Deymo <deymo@google.com> Remove libcurl support from update_engine_sideload.

While sideloading an update from recovery we don't need nor want to
download payload from HTTP(S) URLs, only local file:// are supported.
This patch moves libcurl_http_fetcher and certificate_checker files out
of libpayload_consumer dropping the libcurl and libssl dependencies from
it and the update_engine_sideload.

Bug: 27178350
TEST=build UE for Brillo and Android. Unittests still pass and
update_engine_sideload doesn't link to libcurl.

(cherry picked from commit 14c0da88a93aa7b1aa71d5e7e923b537f0d419f3)

Change-Id: I6195fc0a8ceedfc7fd1a92bdd0acc55ace2c1232
/system/update_engine/common/file_fetcher.cc
6e3ffe73d27de744ef494292c003b5ba907799df 27-May-2016 Alex Deymo <deymo@google.com> Fetch local files asynchronously.

This patch implements a new fetcher that only handles local files.
While libcurl supports file:// urls, the stream can't be suspended when
accessing local files.

This new FileFetcher is based on the brillo::FileStream class which
properly handles the asynchronous reads from regular files.

Bug: 28866512
TEST=Added unittest. Deployed an update from a file:// URL.

(cherry picked from commit 2c131bbf81d8c02ade163b939c96e44aa93765e9)

Change-Id: I9949a0f214de992c2fd86c1d73aca1c1792f0de0
/system/update_engine/common/file_fetcher.cc