Add mode when open(O_CREAT) is used.

When creating a new file using open(..., O_CREAT), it is an error
to fail to specify a creation mode. If a mode is not specified, a
random stack provided value is used as the "mode".

This will become a compile error in a future Android change.

Change-Id: I73c1e1a39ca36bf01704b07302af4971d234b5a8
allow double-quotes or not in TARGET_RECOVERY_PIXEL_FORMAT

Change-Id: I0bf22c87c51a34ee4a839c4966277fad8150bd59
am 989a2859: Merge "Link against libsparse"

* commit '989a28599a600b649f71a06335bf1e4085b5505a':
  Link against libsparse
minui: fix screen update issue

yres_virtual value is set incorrectly, causing serveral images to be skipped.
Change this value according to the number of buffers to fix this issue.

from: codeaurora.org
minui: Display the battery charging image correctly
commit: 581a4dead6b96579a13ff22e2454c1f329731679

Change-Id: I10f5d1c6cc37705f0287c7dd517082de2e11d264
Signed-off-by: Iliyan Malchev <malchev@google.com>
am dd6cd4fc: Merge "graphics: add support for "single buffering""

* commit 'dd6cd4fcc1b22df7f55e1ab3e54589939dc54179':
  graphics: add support for "single buffering"
support version 2 (2048-bit e=65537) keys in recovery

Change-Id: I9849c69777d513bb12926c8c622d1c12d2da568a
fix conflicts with merge of jb-dev-mako

Change-Id: I2d8d18232ed02b2c4e3e661544046bf4b8039800
fix the symlink() command to create directories if needed

Full OTAs currently fail if the build contains a directory containing
only symlinks, because nothing creates that directory.  Change the
symlink() command to create any ancestor directories that don't exist.
They're created as owner root perms 0700 because we assume that in
practice subsequent set_perm_recursive() calls will fix up their
ownership and permissions.

Change-Id: I4681cbc85863d9778e36b924f0532b2b3ef14310
recovery: import init.recovery.${ro.hardware}.rc

Some devices need hardware specific services started in recovery, for
example watchdogd.  Import init.recovery.${ro.hardware}.rc from the
recovery init.rc.

Bug: 6953625
Change-Id: I4a4cee210238150ffaabe774a44340ec3c8ff78c
host modules don't need LOCAL_MODULE_TAGS

Change-Id: I5e1df90f18fbaf98e3207c553a8fb859c1064137
Multiple modules with the same name are going away.

Change-Id: I4154db066865d6031caa3c2c3b94064b2f28076e
Use the static version of libsparse

Change-Id: I664f8dc7939f8f902e4775eaaf6476fcd4ab8ed2
am 3733d218: Merge changes I664f8dc7,I4154db06,I5e1df90f

* commit '3733d2185bbcedd9ef626907f1f32628986cc0f5':
  Use the static version of libsparse
  Multiple modules with the same name are going away.
  host modules don't need LOCAL_MODULE_TAGS
am 55850258: am 3733d218: Merge changes I664f8dc7,I4154db06,I5e1df90f

* commit '5585025814418e8b692a3a38b7cff495180a74f8':
  recovery: import init.recovery.${ro.hardware}.rc
  Use the static version of libsparse
  Multiple modules with the same name are going away.
  host modules don't need LOCAL_MODULE_TAGS
add bonus data feature to imgdiff/imgpatch/applypatch

The bonus data option lets you give an additional blob of uncompressed
data to be used when constructing a patch for chunk #1 of an image.
The same blob must be available at patch time, and can be passed to
the command-line applypatch tool (this feature is not accessible from
edify scripts).

This will be used to reduce the size of recovery-from-boot patches by
storing parts of the recovery ramdisk (the UI images) on the system
partition.

Change-Id: Iac1959cdf7f5e4582f8d434e83456e483b64c02c
am a3ccba6d: add bonus data feature to imgdiff/imgpatch/applypatch

* commit 'a3ccba6d314cb29b02d1dbda9a71427b11da936d':
  add bonus data feature to imgdiff/imgpatch/applypatch
add simple text to recovery UI

- recovery takes a --locale argument, which will be passed by the main
  system

- the locale is saved in cache, in case the --locale argument is
  missing (eg, when recovery is started from fastboot)

- we include images that have prerendered text for many locales

- we split the background states into four (installing update,
  erasing, no command, error) so that appropriate text can be shown.

Change-Id: I731b8108e83d5ccc09a4aacfc1dbf7e86b397aaf
am 02ec6b88: add simple text to recovery UI

* commit '02ec6b88ed4e6cf40cc257572b07c7277b7b6341':
  add simple text to recovery UI
change recovery images to android with spinner

Also make writing the locale a bit more robust.

Change-Id: I803dd0aa0b9d6661fad74ea13fb085682402323c
am 4f33e55d: change recovery images to android with spinner

* commit '4f33e55d1c38d2f72f3306a82c177850f3676408':
  change recovery images to android with spinner