Fix up old libminui to compile

Implement some needed updates to libminui to make it compile for
healthd. Note that res_create_multi_display_surface is not fully
implemented so healthd may still have issues with displaying some
graphics. Will update later when we are able to test these changes.

Change-Id: Ic1095a998f5dfe7e36a08384c86da28e0524a03f
Fix up libminadbd make file

Change-Id: I216d59abf9a2e3d074bcbce9ad10f9dd84a2d463
Fix merge derp in main Android.mk file

Change-Id: Id6fcae7b7b8d9a03ff09711844e987084bd001ac
Fix up tw_reboot function

Change-Id: I53d329e493f4bcb3fe9ed177e7b2dede30ccf490
Fix up install functions

Change-Id: I62110806f60cd923fb761f5e5f2544da3d5b68b1
Add new needed libs for 5.0 recovery

Change-Id: I9444e50b32517aebeca5ff3644c1c2f0dfff9d29
Disable custom theme and fix png loading

We will have to update the zip handling later. Now at least TWRP
boots up to the GUI.

Change-Id: I4182896eb095cab52fb0f1c9c20b6605e35677b9
Fix zip install

We never used the feature for running a custom theme during zip
install. We can re-implement this later if we like. For now, we
will remove this feature until we are ready to make it work.

Change-Id: Ice71b0b863c7ef17376e3f973d48b810be567c33
Update adb sideload feature

Change-Id: Ib503d0e87434e1a28430779302d6565211c26592
Fix potential tree conflicts with scrypt

Change-Id: Iac40957e40cb9c10795dd6a1f67ca902c95dd9bc
Release map after zip install

Change-Id: I4ae145669786ad0932297ae0ae095cbc6f3f696b
Make custom themes work again

Change-Id: Ib9ad011428603979f7dd8a2708989feb9b13e075
Fix openaes

timeb was removed from bionic so include the necessary code in
libopenaes as needed to make it work again.

Change-Id: Idf9eea4e09c7f149a53ed3e952feea0c6674cea6
update theme thanks to Alexey71 on xda.

Change-Id: Id5a0d40d05b0d7e56fb3e8f0578c201957508b70
Make TWRP compile for arm64

-Remove dosfstools for arm64 until we can make it compile
-Fix TW_USE_TOOLBOX flag to work again
-Fix symlinking and handling of sh when using mksh
-Fix legacy properties to find futex_wake function
-Fix libcrecovery to not use bsd_signal anymore
-Fix rules for building with regards to libcrecovery
-Update toolbox_recovery rules to compile tools in lollipop
-Fix a few compile errors specific to arm64

Testers report that TWRP does not boot on Nexus 9 and we fail to
get a shell for adb shell. At least it compiles without errors.

Change-Id: I286be8628defb60cc527b8a548c0bdfcb0ebb574
Add lollipop decrypt support

Kang in cryptfs.c and cryptfs.h from vold.
Use TW_INCLUDE_L_CRYPTO := true to enable.
Ramdisk must contain the normal fstab file in the root in the
usual format of:
fstab.{ro.hardware}
For examble for Nexus 5:
fstab.hammerhead
Or on many Qualcomm devices:
fstab.qcom

Tested against Android 5.0 lollipop on Nexus 7 2012 grouper. Not
sure if or how this will work when we are dealing with a device
with a hardware keystore. Long term we need to add a GUI element
to allow entering a pattern. For now you can decrypt a pattern
unlock by converting the dots to numbers in the following format:
123
456
789

So an upper-case L would translate to 14789 as a password entered
on the keyboard.

Change-Id: I02c29e1f1c2eb29bf002c9fe0fc118357300b5b3
Merge pull request #6 from omnirom/android-5.0

merge into lp5.0