mtdutils: fix rk3xhack filter

Just fix filter for correct platform

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I1f0978a6b215a1967dad4a2c495777d917865b88
Refresh after partition changes

Change-Id: Id16c84f815b1c4b8e95da142648a5a759116ee6e
Color in the console

Allow each gui_print command to specify a color
Change LOGERR to use the error color
Theme should specify colors for error, warning, and highlight

Change-Id: Ie8ece34111f604e25fcb79e5b731cd4e61038ff9
Track backup and restore progress

Track backup and restore progress based on the sizes of the files
as they are being added to the tar backup file. Update the
progress bar based on the sizes of the files.

Change-Id: Idf649efa1db3e91830b4b2add86203a3f30042ff
Fix setting of brightness during startup

Change-Id: I1bd01df971857a2dd5e75ed87c488d075d765527
Change ro.twrp.boot boolean to twrp.crash_counter

Change-Id: If1ef25fee5a138a90ccb4f0a70b20b55698e0d0d
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
Check the crash counter instead of date in TWFunc::Fixup_Time_On_Boot()

* Some devices (Sony) have RTC counting up from year 2009,

Change-Id: I2cf1928e1b05c7e8b184963f8130582e0319ddc4
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
Implement "take a screenshot" feature

* Like in android - press power+volume down, screenshots are saved
  in /sdcard/Pictures/Screenshots (if /sdcard is mounted) or /tmp

Change-Id: Iaefa15b11a1d5fdfac57d77388db1621f378a8d4
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
Remove unused twbootloader.cpp

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