This fixes kernel panic on find7 when disabling MTP before flashing zips.

Change-Id: Id11a0fb1a88424d9dd70190c313781607bad3bb8
EPOLLWAKEUP handling in minui/events.c

Older trees may not have EPOLLWAKEUP defined so we will work
around the lack of EPOLLWAKEUP support as best we can. This should
only maybe affect how charger handles waking up the screen in off
mode charging in older trees. No impact on TWRP itself.

Change-Id: Ia72ebfc12778b2bcda648edc27d2092c2ead415c
Fix generating symlinks for older trees

Symlinks for unpigz, toolbox, and busybox were not generating in
older trees.

Change-Id: I3ca2a2047510954e66fb3cf49eef6af713d3268e
Revert "Fix USB Mass Storage on some devices"

This reverts commit 9eb1cd47520498e181a2d9fb2f3b464ae5327bd8.

Change-Id: I66d3d6bb5633e6df3e8f7db250fc6d62817a5489
Fix loading of png images in custom themes

Change-Id: I7eebc474c025eda534adb04d061795623ebecdda
Attempt to set the proper uid/gid/contexts on new files and dirs

Files and folders that we create during backups, copy log, or MTP
operations often do not have the proper uid/gid/contexts assigned.
We will attempt to read the proper contexts from the settings
storage path and assign those same contexts to any files or dirs
that we create.

Change-Id: I769f9479854122b49b499de2175e6e2d026f8afd
Improve resource error logging

Actually display the name of the item or the filename of the item
that we were unable to load in the log to make it easier to
determine what went wrong.

Change-Id: I027b35aab286e4d0f1957bcfb28ed40d81f9bbb2
Fix compiling of dosfstools for arm64

Change-Id: If99d0be4b73cdeb388c6cb1b35a215d3b8b3b58d
Fixes for compiling crypto in older trees

Some of these fixes needed to be made anyway. Note that older
trees will still need to have files / repos copied into them from
newer trees. Namely we need:
system/security/softkeymaster
hardware/libhardware/include/hardware/keymaster.h

Maybe others as I did not document very carefully what I was
pulling in.

Change-Id: I465fd1fbe228803ec02fba047b151f07ea13d5ca
recovery-twrp: set RGBX_8888 color offsets only if not already initialized in inverse order

Workaround to achieve compatibility between the nameless oneplus
kernel and the framebuffer driver in omni's oppo kernel that still
expects color offsets in a non-standard inverse order (see change-id
I5068897f18e1d119a9bb7f1fe59f9b662153e1b0).

This fixes the failing framebuffer initializiation in twrp with the
nameless oneplus kernel.

Change-Id: I8a85809314596500ef8eb71797e098643299f22c
crypto: add missing header

Change-Id: Ia01a82eb856abaa6cd1ed45b88741a518974ba68