Commit Graph

9577 Commits

Author SHA1 Message Date
Dees_Troy c8bafa1cc1 More Samsung sdcard crypto fixes 2013-01-10 15:43:00 +00:00
Dees_Troy 3a16cb511b Increase char array sizes to allow for null char for strcpy 2013-01-10 15:16:15 +00:00
Dees_Troy 4546fe778d Add libsparse if it exists 2013-01-10 14:33:27 +00:00
Dees_Troy 20c02c0953 Fix ifdefs for Samsung encryption 2013-01-10 14:15:01 +00:00
Dees_Troy ce67546112 Fix wiping problems and save ecrypt key
Fix problems with the wiping of data/media devices
Save and restore the ecryptfs key for external sdcard on Samsung
encrypted devices.
2013-01-09 19:49:19 +00:00
Dees_Troy 85f44ed751 Improve remounting sdcard with ecryptfs 2013-01-09 18:44:25 +00:00
Ethan Yonker f087dfb52c exit instead of return if sideload file creation fails
A return here leaves adb sideload in a permanent loop. An exit is
more appropriate for this error.

Change-Id: I80fb8abae4f6378833aa75f9eaf7ec1acd44b274
Signed-off-by: Ethan Yonker <ethanayonker@gmail.com>
2013-01-09 16:35:51 +00:00
bigbiff bigbiff 9c754053b0 Add libtar to TWRP instead of using busybox tar
Add proper mkdosfs tool
Add fuse to TWRP
Add experimental exfat-fuse to TWRP
Convert all system() functions to use new Exec_Cmd function
2013-01-09 09:09:08 -05:00
a3955269 6ff55cefd0 Add Samsung TouchWiz decryption
Change-Id: I418680e59372160dabfe3e2d5f0208229aa151ae
2013-01-08 20:09:56 +00:00
Dees_Troy 35a0cc3830 Merge "Fix up libmincrypt rules for Android 4.2" into jb-wip 2013-01-07 15:08:04 -06:00
Dees_Troy e515565d6e Fix up libmincrypt rules for Android 4.2 2013-01-07 21:06:50 +00:00
Dees Troy 37407646b9 Merge "Work around MEMERASE ioctl for rk3066 compatibility" into jb-wip 2013-01-07 12:54:47 -06:00
Nick Kralevich 5ae2332202 Add mode when open(O_CREAT) is used.
When creating a new file using open(..., O_CREAT), it is an error
to fail to specify a creation mode. If a mode is not specified, a
random stack provided value is used as the "mode".

This will become a compile error in a future Android change.

Change-Id: I73c1e1a39ca36bf01704b07302af4971d234b5a8
2013-01-07 18:51:23 +00:00
Dees Troy 558132c8ff Merge "Improve handling of undecrypted encrypted /data" into jb-wip 2013-01-07 12:06:44 -06:00
Dees Troy 95006da510 Merge "Reset partition flags when the partition is wiped" into jb-wip 2013-01-07 12:01:39 -06:00
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