Commit Graph
7512 Commits
Author SHA1 Message Date
Sergey 'Jin' Bostandzhyan 80a90edd47 Work around MEMERASE ioctl for rk3066 compatibility
Due to a kernel bug and no available sources we have to work around the
MEMERASE ioctl - if used, it hangs and never returns. I straced the original
recovery executable and could see that it is simply calling write() with a
bunch of zeroes instead of using MEMERASE.

Added a hack that does the same and now the resulting TWRP recovery image works.

Change-Id: I1b1c1c9e870e350776346bdca5d442c7ef565aa0
2013-01-05 00:23:06 +01:00
Doug Zongker 133f56bde0 am f7d42340: am c560a67b: add optional overscan compensation to recovery graphics
* commit 'f7d423403d0aed6b8488559185e2246257abc58b':
  add optional overscan compensation to recovery graphics
2013-01-02 16:35:06 -08:00
Doug Zongker f7d423403d am c560a67b: add optional overscan compensation to recovery graphics
* commit 'c560a67b12350102ba237fa70cedc7c972ad4e4b':
  add optional overscan compensation to recovery graphics
2013-01-02 15:45:53 -08:00
Gary Peck 82599a87ee Improve handling of undecrypted encrypted /data
- Until the encrypted partition is decrypted, treat it as a disk image
  instead of a filesystem so that it is properly backed up using dd.
- Make Partition::Wipe() use the filesystem from fstab for disk images
  so that wiping an undecrypted /data makes it a plain unencrypted
  partition again.

Change-Id: I78db977d6348cfa66b0cfbc492fb5776f84db48d
2012-12-21 06:59:41 -08:00
Gary Peck e8bc5d7b54 Reset partition flags when the partition is wiped
Change-Id: I6c4cee5b038fd0c39c8723412dd8f421f7794a00
2012-12-21 06:45:43 -08:00
Dees_Troy d9a9616195 Increase array size to fix crashes on some devices 2012-12-20 17:44:35 +00:00
Doug Zongker c560a67b12 add optional overscan compensation to recovery graphics
If your screen is a TV, it may not actually be displaying the edges of
the framebuffer.  Allow specifying an overscan percentage, and move
each edge of the framebuffer in by that percent of the width/height.
(The gr_* layer just lies to the caller about the size of the
framebuffer, telling the caller it's smaller than it really is, and
offsets all drawing commands to match.)

Change-Id: I11bb2feb39ae522bd3e957a14ebdecf3609e0fdc
2012-12-18 16:31:27 -08:00
Dees_Troy 8e40d68db6 Update version to 2.3.3.0 2012-12-18 22:45:43 +00:00
Gary Peck 15e623db7a check backup image size before restoring
Change-Id: I206d34936388c1b072eaaec50e0492710cb80f2e
2012-12-18 21:39:06 +00:00
Dees_Troy ddede4ce40 Fix keyboard layout on 800x1280 layout 2012-12-18 21:37:26 +00:00
Dees_Troy e4a88113ab Fix defines on pages.hpp to not collide with pages.h 2012-12-18 21:29:33 +00:00
Dees_Troy 2204203a94 Fix handling of MTD partitions during mount 2012-12-18 21:23:08 +00:00
Doug Zongker 2ad5d91b1c am 6a1d21a0: am bb01d0c1: add NextCheckKeyIsLong() and EnqueueKey() methods
* commit '6a1d21a0ceb1fb46e9113f3d2a81390612806dfd':
  add NextCheckKeyIsLong() and EnqueueKey() methods
2012-12-18 09:14:06 -08:00
Doug Zongker 6a1d21a0ce am bb01d0c1: add NextCheckKeyIsLong() and EnqueueKey() methods
* commit 'bb01d0c12b29e6ff4a9169c21c95408e7eb882c5':
  add NextCheckKeyIsLong() and EnqueueKey() methods
2012-12-18 09:11:47 -08:00
Elliott Hughes 9da1880118 am 9028fb4d: Merge "Pass the correct pointer to munmap on failure."
* commit '9028fb4d4ceed040c7d3ae9b1ceaa5a7472856ba':
  Pass the correct pointer to munmap on failure.
2012-12-17 12:11:47 -08:00
Elliott Hughes 9028fb4d4c Merge "Pass the correct pointer to munmap on failure." 2012-12-17 11:22:21 -08:00
Doug Zongker bb01d0c12b add NextCheckKeyIsLong() and EnqueueKey() methods
NextCheckKeyIsLong() is called right before each call to CheckKey() to
tell the implementation if the key is a long-press or not.  (To be
used on devices with few buttons.)  It's done as a separate method
(rather than a parameter to CheckKey) to not break existing recovery
UI implementations.

EnqueueKey() can be called from CheckKey() to put arbitrary code codes
in the synchronous queue (to be processed by HandleMenuKey).

Change-Id: If8a83d66efe0bbc9e2dc178e5ebe12acd216324b
2012-12-17 10:52:58 -08:00
Elliott Hughes c86f22c131 Pass the correct pointer to munmap on failure.
This won't ever happen, and you're probably screwed anyway if it
does, but that's no excuse...

Change-Id: I2c56f607e351e84308a72b41b834d13aaa98fc62
2012-12-17 09:26:50 -08:00
Dees_Troy 9c74244421 Merge "Ignore bma150 in event handler" into jb-wip 2012-12-12 13:31:06 -06:00
Dees_Troy 68cab49d96 Add ignore blkid flag for Transformers
Change-Id: I8f2b5b68a8c3ede74858d53002efab997174ee65
2012-12-12 19:29:35 +00:00
Dees_Troy da8b55aff3 Restore text display during restore 2012-12-12 19:18:30 +00:00
Dees Troy 19fca3af55 Merge "restore based on backup type, not destination type" into jb-wip 2012-12-12 13:14:08 -06:00
Dees Troy a23258d30d Merge "add Decrypt Data button" into jb-wip 2012-12-12 13:12:36 -06:00
Dees Troy 16a040b096 Merge "print partition details independent of whether its mountable" into jb-wip 2012-12-12 13:11:56 -06:00
Dees Troy 97652ca654 Merge "minuitwrp: fix screen update issue" into jb-wip 2012-12-11 09:56:50 -06:00
Dees Troy 8983ccd55f Merge "graphics: add support for "single buffering"" into jb-wip 2012-12-11 09:56:29 -06:00
Dees_Troy 07a3a74e9e Ignore bma150 in event handler 2012-12-11 15:13:21 +00:00
bigbiff bigbiff 29af138023 Merge "fix SP variable names" into jb-wip 2012-12-10 13:18:59 -06:00
bigbiff bigbiff 20ef6e3585 fix SP variable names 2012-11-23 20:22:11 -05:00
Gary Peck 43acadf10e restore based on backup type, not destination type
Change-Id: Ie44958a148d00cadd2ba3c51255f7fd9d8a651e7
2012-11-22 06:09:21 -08:00
Gary Peck ffdc6aea4c add Decrypt Data button
Allow to decrypt /data even if decryption was skipped during the initial
loading of recovery

Change-Id: If2251757a276dd069578e93e5a038b25a825bff6
2012-11-22 05:56:38 -08:00
Gary Peck 004d48b105 print partition details independent of whether its mountable
Change-Id: Ibbc3bf3d3264fb9852f8312ece0567950aace496
2012-11-22 05:55:33 -08:00
Hiemanshu Sharma acf6a9b4d9 minuitwrp: fix screen update issue 2012-11-21 11:28:36 -06:00
Hiemanshu Sharma 94f6c88dab graphics: add support for "single buffering" 2012-11-21 11:25:22 -06:00
Hiemanshu Sharma 4c11714527 Fix compiling for x86 targets 2012-11-21 08:37:58 -06:00
Dees_Troy 5fface832f Add 23x41 roboto font 2012-11-19 18:36:00 +00:00
Dees_Troy f94f9acbf9 Fix renaming of backups with spaces, 2.3.2.3 2012-11-19 17:16:17 +00:00
Dees_Troy 014c894af2 Workaround for crypto quirk on Nexus 10 2012-11-19 17:10:46 +00:00
Dees_Troy 2effe65437 Finish 2560x1600 theme 2012-11-19 17:06:03 +00:00
Dees_Troy 201d76b4c3 Fix fix permissions 2012-11-16 20:21:09 +00:00
Dees_Troy 16b74353d9 Fixes for multi-user in 4.2
Also fixed inability to delete backups with a space in the name.

Change-Id: I2f6639d33caa3c4542960f76adbd59b25ab64f5d
2012-11-15 19:27:08 +00:00
bigbiff bigbiff 3e14652310 add exfat to partitions.cpp 2012-11-14 22:22:25 +00:00
The Android Open Source Project 1fca2650ed am 27f31606: (-s ours) am aa0dbb25: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
* commit '27f31606390eeed50d27f2c243dfbfe79e8b5ae2':
2012-11-06 12:23:57 -08:00
The Android Open Source Project 27f3160639 am aa0dbb25: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
* commit 'aa0dbb25a0ae51a8e53018fe05bf59164d9804cb':
2012-11-06 12:21:06 -08:00
The Android Open Source Project aa0dbb25a0 Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
Change-Id: Ibef4c059b7a7e055fe562c60656a9f7f7de4841a
2012-11-06 12:16:04 -08:00
Doug Zongker 6c249f7ae8 move key loading to verifier code
Add an option to verifier_test to load keys from a file, the way the
recovery does.

Change-Id: Icba0e391164f2c1a9fefeab4b0bcb878e91d17b4
2012-11-02 15:09:57 -07:00
Dees_Troy 1a650e6fc4 Unmount main partitions after fixing permissions 2012-10-19 20:54:32 -04:00
Dees_Troy 30b962eb51 Add keyboard key highlight 2012-10-19 20:51:12 -04:00
Doug Zongker bf80f49edc reduce some recovery logging
Make minzip log only a count of files when extracting, not individual
filenames.  Make patching only chatter about free space if there's not
enough and compact the other messages.

Only the last 8k of the recovery log gets uploaded; this makes it more
likely that we will get all of it.

Change-Id: I529cb4947fe2185df82b9da5fae450a7480dcecd
2012-10-19 12:24:26 -07:00
Dees_Troy 4d12f969b8 Add ability for buttons to have highlights on touch 2012-10-19 13:13:15 -04:00