Only disable recovery flash if it is truly "stock" recovery

 Some roms need the recovery-from-boot.p for auto update
 of recovery. Typically the use install-[romname]-recovery.sh.
 So only disable if install-recovery.sh is present.

Change-Id: I01f89afc87b9d375d67b44b8b5e9228868a47d69
Allow ui.xml to include additional xml files to read

Use common portrait and landscape xml files based on resolution
defined by the device.

Change-Id: Iec528f9d846d49857ff98de1ac201e25dbb60339
add 1440x2560 theme to TWRP

Change-Id: I9e54d2bcfe89e1e0e3205ce2f4156cfd22dca5b5
Revert "add 1440x2560 theme to TWRP"

This reverts commit c45181db0902762fb670b56a173db7c331e564cb.

Change-Id: I9dfb2733d9eb30c32bc1e307e382ee8e4e47a0b6
add 1440x2560 theme to TWRP

Based on work by Chris Phelps <cphelps76@droidconcepts.com>
https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/58963336b81ea8bcc03b8d7e4dfe4598f5afc972
https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/4ec10303cb76592044c3aa449dc68a33356a6e09
https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/c48bd2412332916eafd0db727d923c8c16cd35ed
https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/f0944ded30e98917ca85db0185add1207ea5f4b6
But with other original changes too.

Change-Id: I809a37a3983187e62568a1e2403b6637a692220d
Update 240x240 theme

Change-Id: I1a50fa0bb750b229220c217d24253b65f24d2920
Add 320x320 theme and split out watch.xml for square watch layout

Change-Id: I7fe38b20913a981942105637a527a2d26ed035a5
Minor tweaks to watch ui.xml files

Change-Id: I9448eed41e43c4fce575b7ed12b5270a1d75f99b
Add 280x280 theme

Change-Id: Iea2fac2f1b300c312819ea2d83e1762669d357b6
Stop memory management on blanking overlay graphics

This prevents a crash in TWRP when trying to blank
the screen on devices that are using overlay graphics.

Change-Id: I155868616ffa1b211e97be97e4abe8b03dad7ca0
Allow using variables and addition/subtraction in variables

Change-Id: I1acba95302e414e1a471d27474508a7c48df0328
update 1440x2560 keyboard mapping

Change-Id: I9777e92ca26967d41625e726383ae6aa5406161d
Add possibility to use images as background or handle of slidevalue

* Add tag <resource background="x" handle="y" handlehover="z" />
  to the slidervalue object.
* All images are optional, e.g. you can use just handle or just
  background image or no images whatsoever

Change-Id: Ie0fee92965c6e883c4e532732756008dcc9e385e
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
remove stray test file
exfatfsck: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=c91c3e4c1e542e4a40bcad47ac747f62fb7312f9, not stripped

Change-Id: I32472d460a8f03776e1d215810c537b029789220
removing logging test file
updating gitignores to keep file from coming back
adding gedit backups to gitignores

Change-Id: I36d55983b34d47763cb56abf784381c06d951302
Set font based on resolution if not set already

Change-Id: I6efaeb1c508c06513ac9ace7aa72a2eefa0cb1bb
Add command line capabilities

Allows sending openrecoveryscript commands to TWRP via shell.
This may be handy for visually impaired users, for various one
click utilities to drive TWRP commands from a computer, for using
TWRP when a catastrophic hardware failure like a shattered screen
prevents you from being able to use touch, or even on devices like
a TV stick where touch and USB mouse input is unavailable.

This patch also includes a few minor changes to openrecoveryscript
including proper support for rebooting via the script and for
decrypting the device via the command line.

Change-Id: I796ad168efdd2da9c25334ac93d1079daaa7b0bc
TW_SCREEN_BLANK_ON_BOOT will jolt the screen/touch driver.

If on the default settings the screen will only kick in to action
AFTER it has gone to sleep once and has been woken up again with a
key press, this will be needed to set to 'true' in the
BoardConfig.mk

The code was already there, Dees_Troy and I thought it would be
nice to make it a switch to control at compile time.

Change-Id: I5116a27afe9cba57122761c192ea3ee153d98162
Support reading since_epoch and secondary brightness files

TWFunc::Fixup_Time_On_Boot: Will now try to read
/sys/class/rtc/rtc0/since_epoch to correct time, if that fails
it will try to use the ats files to correct time.

TWFunc::Set_Brightness: One single function to set brightness
from both the automated functions and the gui actions. It is
able to set a second brightness path if present, it will set
them both the same value. Many Sony devices have 2 brightness
files in the sysfs that must be set to properly set the
brightness.

Change-Id: I7ca582109085dfbcb46b8de73ad031e4b7903fca
Allow blacklisting input devices by build flag

Usage:
TW_INPUT_BLACKLIST := accelerometer
TW_INPUT_BLACKLIST := "accelerometer\x0agyroscope"

This can be used to fix touch input on devices where an input
device is breaking touch processing in TWRP.

We are using new line chars to separate multiple devices and in
the make file you specify the new line character with \x0a which
is the hex code in ASCII for a new line.

The new line character might be a bit of a pain to use as a
delimeter, but it is highly unlikely that an OEM will ever name
an input device with a new line character in the name.

Change-Id: I255136b7a686909a23e649918c661843153c2853