exit instead of return if sideload file creation fails

A return here leaves adb sideload in a permanent loop. An exit is
more appropriate for this error.

Change-Id: I80fb8abae4f6378833aa75f9eaf7ec1acd44b274
Signed-off-by: Ethan Yonker <ethanayonker@gmail.com>
Fix libpng API usage

 Remove usage of deprecated methods that were removed in 1.6

Change-Id: I2a669bf5201197f60adfdbe512fd729bebb74f9c
am 239ac6ab: recovery: install packages in a known mount environment

* commit '239ac6abac4524be93fce710360c0512c6cc2ab3':
  recovery: install packages in a known mount environment
am 5c4e1dac: Merge "Update libpng API usage"

* commit '5c4e1dac0bd8f31559bd50eec4343b7a17b7a976':
  Update libpng API usage
am 19877de5: am 5c4e1dac: Merge "Update libpng API usage"

* commit '19877de513a9493dad77488144089b4f30103b74':
  Update libpng API usage
am 77ea71d6: recovery: fix rebooting

* commit '77ea71d6a85a93c9bf423466e87661b1bf67c512':
  recovery: fix rebooting
am 366f78a9: am 77ea71d6: recovery: fix rebooting

* commit '366f78a9df45d6648746de8454655224b22c31fd':
  recovery: fix rebooting
am 3b5a987c: recovery: fix use of init reboot method

* commit '3b5a987cd7fd76c038e9875b430028216d21ace3':
  recovery: fix use of init reboot method
am f187a543: am 3b5a987c: recovery: fix use of init reboot method

* commit 'f187a5438d5a0651c344038f2203469e193704f9':
  recovery: fix use of init reboot method
allow CheckKey to request mounting /system

Also provide a default implementation of CheckKey that's reasonable
for many devices (those that have power and volume keys).

Change-Id: Icf6c7746ebd866152d402059dbd27fd16bd51ff8
am 3328e3bc: Revert "Update OTA installer to understand SELinux filesystem labels"

* commit '3328e3bc81161c2a57ea94d304162276facdd826':
  Revert "Update OTA installer to understand SELinux filesystem labels"
am 5dbdef0e: updater: introduce and set_metadata and set_metadata_recursive

* commit '5dbdef0e5b8a841fadc64d016d10ce81a962b284':
  updater: introduce and set_metadata and set_metadata_recursive
am 5ae88e89: am 3328e3bc: Revert "Update OTA installer to understand SELinux filesystem labels"

* commit '5ae88e899836e7e3350db55ac47aee6f219cf126':
  Revert "Update OTA installer to understand SELinux filesystem labels"
am cc421662: am 5dbdef0e: updater: introduce and set_metadata and set_metadata_recursive

* commit 'cc421662d7f9b68627204b8c8bfb4a5cada74125':
  updater: introduce and set_metadata and set_metadata_recursive
am e461251e: Don\'t apply permission changes to symlink.

* commit 'e461251e2caa5561cf6a315bffaebfd4eb896b1d':
  Don't apply permission changes to symlink.
am af677d78: am e461251e: Don\'t apply permission changes to symlink.

* commit 'af677d786e6333187ccbd4f7fe6f371a09b71645':
  Don't apply permission changes to symlink.
updater: Delete dead code

set_perm and set_perm_recursive are no longer used. Delete.

Change-Id: I3bb40b934b6c093b24b88aa4ed6f3c7de2bb52f0
am cc2958fd: fix secure adb in recovery

* commit 'cc2958fd7f32f79d1a034eee005e04afeb310a87':
  fix secure adb in recovery
am 1306a7ef: am cc2958fd: fix secure adb in recovery

* commit '1306a7effafab77cf2769091619518c2ab263ee8':
  fix secure adb in recovery
minui: convert ev_*() event interface to epoll

Help enable external main loop combined with ev_*() key event processing.

Specify EPOLLWAKEUP to hold a wakelock on any event, assuming this is needed
(may need to make this optional).

Convert callback events parameter to unsigned int.

Change-Id: Ib5e09abbd7724ffd830e2cf8e25e7eb59d3aa072