Always call set_bootloader_message(), not just for MTD-devices. set_bootloader_message has a built-in check for MTD/eMMC via fstab.

Signed-off-by: stratosk <stratosk@albert.(none)>
remove copyright, switch to AOSP license

Change-Id: I53485386d68726f5c0596ac842e6a480d4463b74

Signed-off-by: stratosk <stratosk@albert.(none)>
use TARGET_RECOVERY_FSTAB location if defined

If TARGET_RECOVERY_FSTAB is defined use this location to find
recovery.fstab

Change-Id: Ic4cd26f5be064586359f39ff82d7f9b09ce57f53

Signed-off-by: stratosk <stratosk@albert.(none)>
Fix build on gcc 4.6.

Several programs were not linked against libcrecovery which has the __system
function.

Change-Id: I12b33a9157ab74825129896d0f2177fa83638464
Signed-off-by: Evan McClain <aeroevan@gmail.com>
Signed-off-by: stratosk <stratosk@albert.(none)>
Only update UI at 1 Hz during nandroid backup/restore

On high-resolution devices such as the Galaxy Note, UI updates
consume more CPU than all other operations.  For example, a nandroid
restore on Note pegs an entire core at 1.4 GHz for the recovery
process while tar is using only 14% of the other core, and iowait
times are low indicating the CPU is not simply waiting for IO.

Nandroid backup/restore should be I/O bound, not CPU bound.

This changes the update interval to 1 Hz during nandroid
backup and restore.

Change-Id: Ic021cd6dc453b92468396cab1a31bd693efb43e0

Signed-off-by: stratosk <stratosk@albert.(none)>
recovery: Allow key to repeat on hold.

Thanks to FaultException

This implements the ability to hold a key and have it repeat.
This makes it possible to hold down the volume key to scroll
down to a file.

Enabling repeatable keys:

ro.cwm.enable_key_repeat=true

To control which keys can repeat, you can set this prop with
a list of key codes, like this:

ro.cwm.repeatable_keys=137,200,151,300

If you don't set ro.cwm.repeatable_keys only UP, DOWN, VOL UP
and VOL DOWN will be repeatable.

Patch-set 1:  First commit
Patch-set 2:  Re-worked a little
Patch-set 3:  Now uses system props.
Patch-set 4:  Fixed USB connection bug
Patch-set 5:  Compressed down a bit
Patch-set 6:  Fixed spacing derp
Patch-set 7:  Fix bug + increase speed
Patch-set 8:  Slow it down a tad
Patch-set 9:  Took care of inline comments
Patch-set 10: Added UP & DOWN to default repeatable keys
Patch-set 11: EV_REP compatibility + logic changes
Patch-set 12: EV_REP takes precedence
Patch-set 13: Fixed spacing derp
Patch-set 14: Fixed time overflow >_>
Patch-set 15: Remove a little whitespace
Patch-set 16: Removed *~
Patch-set 17: Reworked per koush's suggestion

Change-Id: I7c7ef035c89210212bf08f8aa97150222d948d0c
Fixed indicator color when battery < 21
support datamedia on any one volume

Change-Id: I198e789ee01e8a5b10eee33ed59a2d828cfb096a

Signed-off-by: stratosk <stratosk@albert.(none)>
fix up datamedia volume detection

Change-Id: Ia853e31e31aebce9e70b1e9500930b14a92ee4bf

Signed-off-by: stratosk <stratosk@albert.(none)>
Fix nandroid restore exclusion for datamedia when there is a /sdcard path.

Change-Id: I966def8862a8c864bfc17834bf5a2363b290bf0c

Signed-off-by: stratosk <stratosk@albert.(none)>
Fix up tabs

Change-Id: I7e8e35d4ce48ce3eac15a7615d2f6a6b5a569ff4

Signed-off-by: stratosk <stratosk@albert.(none)>
This is a good commit, but was breaking logging. The proper place to do ui refresh limitation is in ui_print itself.

Revert "Only update UI at 1 Hz during nandroid backup/restore"

This reverts commit 04076f0722381ca68420c3b9172dac78d3b91017.

Signed-off-by: stratosk <stratosk@albert.(none)>
Rewrite the code that throttles UI updates to be in ui_print itself.

Change-Id: I4fc59efc42991bdcf4fcd09feacfeb6fd984d58c

Koush
Split the tar files into 1GB pieces. Fixes backup and restore onto vfat (2gb max files). May also address busybox large fs issues.

Change-Id: I1f5a5d717ac55ae6cf053ceaa1bf0b4e0061f00a

Signed-off-by: stratosk <stratosk@albert.(none)>
Revert: Split the tar files into 1GB pieces
Fix printing in ui throttling