Change to lstat so we don't count the target of symbolic links as part
of the tar archive size. Big thanks to Tassadar for pointing out the
fix.

Change-Id: I8894ffef54c93939b5b455634169d9c14d8ed7af
Re-arrange handling of settings storage partition

Sometimes we received an error about being unable to locate
storage partition because the DataManager would attempt to access
the PartitionManager before we finished adding the storage
partitions to the vector.

Change-Id: I0ce1778938d308b1eb17de46a192ecd52489cad3
add 1600x2560 to TWRP. Thanks to nrage123 and Gunthermic for creating
the theme.

Change-Id: If633af291689b2ac686c41331bb9adac34c425ad
Add basic error checking to legacy property init

Let init and rename funcitons return success or failure values.

Change-Id: Ieed86cac8a0dcfd770a89dacc57fd306e7a6ad8d
Allow disabling legacy properties

Introduce TW_NO_LEGACY_PROPS flag for users that build TWRP in
non-kitkat trees and don't need the legacy prop environment.

Change-Id: Iacb2d9af7d7069acb3d0a96bb34f32ded6317a20
Cleanup DU Get_Folder_Size function

Change-Id: I3c686c7c3a171f130d299fae586dc811cad0d3a9
correctly mount tmpfs as /tmp in recovery

The syntax of init's mount command changed in April 2008 but
recovery's init.rc was never updated, so recovery's /tmp has been on
the root fs all this time.  Fix.

Also add /system/bin to the PATH in recovery, which is handy for
debugging.

Change-Id: I9e60d18803906bc75c263f12c8863cfd6a14147b
Fix /data backup size if contains media subdirs

/data/*/media directories are mistakenly being excluded from the size
calculation. Change to absolute dir exclude so that only /data/media is
excluded.

Change-Id: I6e97604d44e6ea2bdf7dfd8c68a2f90ba6d44415
if md5 check is not selected for subpartitions, don't check it.

Change-Id: I7248c75f17c6f82e098831c297c0662ef6ea289f
Remove deprecated tar exclude functionality

twrpDU::check_skip_dirs() handles skipped folders now. Everywhere
twrpTar::setexcl() is being used to exclude files eventually calls
createTarFork(), which in turn calls Generate_TarList(), which checks
check_skip_dirs().

Change-Id: Ibbc4eb2eb89863ccb2a15f5a3b5092fb10fcbcc0
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
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