Improve USB Storage handling

Change-Id: I5743d9b967a8227c4bb87da01a9c67c574bf9876
Support Qualcomm overlay graphics in recovery

Change-Id: Ia75c34ab1a45b7c8802c902906198517aa3437d5
Fix display of .android_secure size in Backup

Setup_Settings_Storage_Partition() needs to be called before
Update_System_Details() in order for the /and-sec mount point to be
setup and size read correctly.

Change-Id: Id5394c90b6d095027c1b852764676dc6080a871d
Convert 1600x2560 ui.xml to unix line endings

Change-Id: I98dd6b25cbb1616f6032e9dcb4174461add53498
Refresh page after updating partition sizes

Some (all?) devices do not update the partition size displayed on the
backup screen when selecting "Refresh Sizes". Refresh the page after
recalculating sizes.

Change-Id: Id34da6c738f86501f73cbd7874f6921d1cda32c4
Merge changes Ia75c34ab,I5743d9b9 into android-4.4

* changes:
  Support Qualcomm overlay graphics in recovery
  Improve USB Storage handling
Merge "Fix display of .android_secure size in Backup" into android-4.4
Merge "Convert 1600x2560 ui.xml to unix line endings" into android-4.4
Merge "Refresh page after updating partition sizes" into android-4.4
Fix backup and restore of encrypted backups

After removing the DataManager code to support twrpTar separate
binary we were failing to pass / set the password for the various
separate threads used for openaes.

Change-Id: Ifff634777fe122e0195d84f67932177ca8879c2f
Fix overlay graphics detection

Change-Id: Ic1ef3f6a4e9c74efb07d8a0103543d124567f0d4
Stop printing Unable to mount to console if storage is removable. We will still print to
recovery.log

Change-Id: I19e3df2e977e09e222733f13324051334982b05d
Allow building of an OEM friendly TWRP

Disable theming
Disable creating the TWRP folder for the settings file
Change factory reset on data/media devices to a full wipe

Change-Id: I3104282b5dd3f55dfff7c8cf39c72750af08563d
Add option to build TWRP with toolbox instead of busybox

Makes a smaller TWRP
Uses mksh for shell

Change-Id: If78d7745dda8919fcb2e9c9b60c6696063c14114
Tweak OEM mode

Change-Id: Ic440e33fa22aa7b082097366f10b333cc945362a
Rearrange opening of output and input files for error handling

If the file could not be opened, the process would log an error
to the log file but the GUI would report success. Rearrange the
process so that the GUI shows an error.

Change-Id: I96af0b934c8f6f463d56656647b16accd1d40654
Only split archives when split_archives is set

In some cases, statfs used on partitions like /system does not
report a size that would trigger a split archive, but using stat
on the individual files shows a larger size that statfs that
would trigger a split. This patch prevents us from trying to split
an archive unless we explicitly decided to split in advance.

Change-Id: I67f5cd343f12333e1189100cf0ec1c20c15b7cc2
Fix touch on Sprint HTC One m8

Change-Id: Ia9fba3be16a33b3cb0c4a3458398a2e60ba7f001
Add find file class to search for files

Scan a folder for a file based on file name. First scan the files
in the current path, then search real directories and finally
search symlinks in that order. Goal is to locate important sysfs
files for things like brightness, battery capacity, lun files, etc

This implementation just scans for the brightness file for the LCD

Change-Id: I8ed3e74a2e2851d58b443718b6e92b50a5491f08
Force zip verification in OEM builds

Change-Id: Ie894b5f5cda64f83b1bb58bb977024230b0337f2