Do not wipe block misc on bootloader msg update

When set_bootloader_message_block() is called, it fopens /misc in write
binary mode, wiping all contents other than what is being written. The
bootloader msg structure is only 1024+32+32 bytes, so some manufacturers
store more than just a bootloader msg on /misc. fopen in read+append
mode so that only the bootloader msg is written and the rest of the
partition is left untouched.

Change-Id: I2d2fbdf067282744864a19d404ca7dc12f688a98
Allow custom bootloader msg offset in block misc

Use board define BOARD_RECOVERY_BLDRMSG_OFFSET with a decimal integer
to define a custom offset where the bootloader message should be
read/written.

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