History log of /system/update_engine/sideload_main.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9629bbc4ba447d3c2806a3ee1ed9c07a4ced75e2 11-Aug-2016 Alex Deymo <deymo@google.com> Setup a temporary directory for update_engine_sideload.

When running update_engine_sideload from recovery, the default temp
directory (/data/misc/update_engine/tmp) is not available. This
directory is currently used to store a blob when applying a bspatch
from a child process. This patch uses /tmp/update_engine_sideload as
a temporary directory when running update_engine_sideload from recovery.

Bug: 27178350
TEST=`adb sideload` an incremental update.

(cherry picked from commit 3295102ed64107f966d4cf8bfe733bb936646630)

Change-Id: Icef9dd48b00991975bcf6c39a148f952ef43d9e3
/system/update_engine/sideload_main.cc
a386d05d9e3e55eba69eb7753b9f7b1152feb658 01-Aug-2016 Alex Deymo <deymo@google.com> DO NOT MERGE: Make update_engine compile in the branch.

These changes are required to adapt the cherry-picked CLs to the
context of this branch.

Bug: 27178350
Change-Id: Ifb6be225294e5b8849daa2dce90cc952ef2dab52
/system/update_engine/sideload_main.cc
5462f45087236b3f01a7cf6debd41c8ce008667d 03-Aug-2016 Alex Deymo <deymo@google.com> Report the progress of the update when sideloading.

update_engine_sideload now accepts a file descriptor number via a new
--status_fd flag. When applying the update, it will report back to
recovery via this file descriptor the progress of the update in the
format expected by recovery.

This patch also initializes the Subprocess singleton used during the
update.

Bug: 27178350
TEST=Executed update_engine_sideload from recovery and watched message updates.

(cherry picked from commit 40a017db5df92ab7f9c3dcd73cd736a645931c93)

Change-Id: Iee70cea7811aec634463c912f718583c53c2b58b
/system/update_engine/sideload_main.cc
578b787b0b83ae9a93ff77d4cd73d2f5d3e8994d 21-Jul-2016 Alex Deymo <deymo@google.com> Build update_engine_sideload.

Add a new "sideload" executable target that applies an update payload
directly using the UpdateAttempterAndroid.

This initial CL buils a dynamically linked program that's targeted to
run in the system image for now, but will later be transformed into a
static binary to run from the recovery environment.

Bug: 27178350
TEST=Applied a payload directly on a device using:
`update_engine_sideload --payload=file://foo/bar ...`

(cherry picked from commit 03a4de7dc77b058987fc0670f4f67ba10ff31bc8)

Change-Id: Idbde52fff9ace53c03f34103664f51b9db45027d
/system/update_engine/sideload_main.cc