Commit Graph

9577 Commits

Author SHA1 Message Date
Doug Zongker 8cd12112e4 am d51bfc9b: Merge "Fix the potential segmentation fault"
* commit 'd51bfc9b1fe89321af3c629e7b23a747050332e1':
  Fix the potential segmentation fault
2013-06-04 12:10:28 -07:00
Doug Zongker d51bfc9b1f Merge "Fix the potential segmentation fault" 2013-06-04 19:05:59 +00:00
Jin Feng 93ffa7579c Fix the potential segmentation fault
Extral newline can trigger recovery segmentation fault
Test case:
host$ adb shell 'echo -en "--update_package=ota_update.zip\n--show_text\n\n" > /cache/recovery/command'
host$ adb reboot recovery

Change-Id: If1781c1f5ad94a273f1cb122b67cedd9fb562433
Signed-off-by: Jin Feng <jin88.feng@gmail.com>
2013-06-04 17:46:24 +08:00
Doug Zongker 22bdc370b0 am da1ebaef: recovery: save logs from the last few invocations of recovery
* commit 'da1ebaef0aa8e38db6edf8bfc3d96290461a424f':
  recovery: save logs from the last few invocations of recovery
2013-05-21 11:31:09 -07:00
Doug Zongker 4e021c56f3 am 7c3ae45e: recovery: turn on text display for install errors in debug builds
* commit '7c3ae45ef9306d2ff4b491e0488c8849bf15ce90':
  recovery: turn on text display for install errors in debug builds
2013-05-21 11:31:09 -07:00
Doug Zongker da1ebaef0a recovery: save logs from the last few invocations of recovery
Extends the last_log mechanism to save logs from the last six
invocations of recovery, so that we're more likely to have useful logs
even if the device has repeatedly booted into recovery.

Change-Id: I08ae7a09553ada45f9e0733fe1e55e5a22efd9f9
2013-05-21 11:19:15 -07:00
Doug Zongker 7c3ae45ef9 recovery: turn on text display for install errors in debug builds
Hopefully this will reduce the number of OTA "bugs" reported that are
really just someone having changed their system partition,
invalidating future incremental OTAs.

Also fixes a longstanding TODO about putting LOGE() output in the
on-screen display.

Change-Id: I44e5be65b2dee7ebce2cce28ccd920dc3d6e522e
2013-05-21 11:18:38 -07:00
Doug Zongker 46bee63afc recovery: save logs from the last few invocations of recovery
Extends the last_log mechanism to save logs from the last six
invocations of recovery, so that we're more likely to have useful logs
even if the device has repeatedly booted into recovery.

Change-Id: I08ae7a09553ada45f9e0733fe1e55e5a22efd9f9
2013-05-16 11:25:28 -07:00
Doug Zongker 596b342a04 recovery: turn on text display for install errors in debug builds
Hopefully this will reduce the number of OTA "bugs" reported that are
really just someone having changed their system partition,
invalidating future incremental OTAs.

Also fixes a longstanding TODO about putting LOGE() output in the
on-screen display.

Change-Id: I44e5be65b2dee7ebce2cce28ccd920dc3d6e522e
2013-05-16 10:47:02 -07:00
Trevor Drake 2d388ea5f9 verifier_test : fix the call to verify_file
This was cause mm to fail when ran in the bootable/recovery directory

Change-Id: I1416a1a6a4c41e6d4b14386715074a8da9e39b43
2013-05-16 01:29:19 +01:00
Dees_Troy 3f23d9eeca Allow for more input devices 2013-05-03 21:04:05 +00:00
Dees_Troy 76a1d41429 Fix write_raw_image to work with mmc 2013-04-20 13:54:35 +00:00
Dees_Troy 2c4e4437b3 Fix CFLAGS for Samsung decrypt 2013-04-18 16:38:28 +00:00
Doug Zongker c7a6858dc9 Merge "verifier: update to support certificates using SHA-256" 2013-04-11 22:02:46 +00:00
Dees_Troy f6b15d1d45 Fix building of updater binary 2013-04-11 15:29:54 +00:00
Doug Zongker bac7fba027 verifier: update to support certificates using SHA-256
Change-Id: Ifd5a29d459acf101311fa1c220f728c3d0ac2e4e
2013-04-10 11:32:17 -07:00
Ying Wang e5d37b409f am 4e21482d: Add liblog
* commit '4e21482d979f6f81b34f92e664adf137555d4504':
  Add liblog
2013-04-09 22:21:14 -07:00
Ying Wang 4e21482d97 Add liblog
Bug: 8580410
Change-Id: Ie60dade81c06589cb0daee431611ded34adef8e6
2013-04-09 21:41:29 -07:00
Dees_Troy 9e0b71c6ad Improve backup list results 2013-04-08 13:35:37 +00:00
Dees_Troy 70737fabde Improve automated handlidling of partitions 2013-04-08 13:19:20 +00:00
Dees_Troy a449a6f504 Fix handling of AOSP recovery commands 2013-04-07 17:53:34 -05:00
Dees_Troy 66fc8b5887 Tweak libs 2013-04-05 19:42:15 +00:00
Dees_Troy 34614eb94f Improve handling of XML errors for fix permissions 2013-04-05 12:04:38 -05:00
Dees_Troy 91862e618e Fix handling of subpartitions 2013-04-04 23:48:21 +00:00
Vojtech Bocek 85932344cd Add new SliderValue GUI widget
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: Ic5d44314f501341140dd7059d1cb753341f5844c
2013-04-04 18:59:08 +00:00
Dees_Troy 2673cec07a Move all AOSP code out of recovery binary
Improves license compatibility between GPL and Apache

Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
2013-04-04 18:57:34 +00:00
Dees_Troy a13d74fc95 Add partition list GUI element
Add partition list GUI element and update backup, restore, mount,
storage selection, and wipe sections of GUI and partition manager
code to reflect the new GUI element. Update ORS engine to handle
new backup and restore setup.

Fix a bug with decrypt.
Add 1080x1920 layout.

Change-Id: Iaa2f44cb707167e66f935452f076ba00e68a2aa4
2013-03-30 08:56:39 -05:00
n0d3 3b51163329 Add search function to libtar
Function entryExists() can be called in order
 to check if an entry exists inside an archive.

Change-Id: Id3d13d20dfb74a1779dbd8ba6f0ab08c3ca46319
2013-03-18 17:37:28 +00:00
Dees Troy 7289a181d8 Merge "trying to fix md5 Change-Id: I4ec037f76aa965bc818afe924942adbe9a080b36" into twrp2.4 2013-03-18 09:57:29 -05:00
bigbiff bigbiff 65a4c73b1e trying to fix md5
Change-Id: I4ec037f76aa965bc818afe924942adbe9a080b36
2013-03-17 14:40:20 -04:00
Dees_Troy 3263e9260c Fix backup of initial directory with split archives
Change-Id: Icbb3be817b8a8fe693f6ee015152f780c40b3f7a
2013-03-16 09:03:53 -05:00
Dees_Troy 71796590ed Updates to libtar logging 2013-03-15 10:56:58 -05:00
Dees_Troy 1357a42ca5 2.4.4.0 2013-03-12 02:41:46 +00:00
Dees Troy 4771e0130a Merge "add no fb blanking Change-Id: Iaf771257d8f904807ca6f6c1a6c3d7993abadb85" into twrp2.4 2013-03-11 21:35:23 -05:00
bigbiff bigbiff 8794036ba3 add no fb blanking
Change-Id: Iaf771257d8f904807ca6f6c1a6c3d7993abadb85
2013-03-11 18:45:06 -04:00
Dees_Troy 3b18a63d43 Merge "Remove unused fonts from 320x480" into twrp2.4 2013-03-11 15:41:24 -05:00
Dees_Troy 5a1ef678e7 Merge "Remove mutex from file seselector" into twrp2.4 2013-03-11 15:41:08 -05:00
Jean-Baptiste Queru 84a6c0d298 am b5bd4fb7: (-s ours) am 2f50df00: am c09444eb: am f91bd41c: am 1c302caf: (-s ours) am c14a7fbd: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit 'b5bd4fb79544b1939e9f977a88a707bdc90cf66c':
2013-03-11 20:05:35 +00:00
Jean-Baptiste Queru b5bd4fb795 am 2f50df00: am c09444eb: am f91bd41c: am 1c302caf: (-s ours) am c14a7fbd: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '2f50df0058dff23fbdfc6b123bb92aaa90aea09b':
2013-03-11 12:58:20 -07:00
Jean-Baptiste Queru 2f50df0058 am c09444eb: am f91bd41c: am 1c302caf: (-s ours) am c14a7fbd: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit 'c09444eb5b66a5702db99d9b7de23cb73bf11aa4':
2013-03-11 12:41:56 -07:00
Jean-Baptiste Queru c09444eb5b am f91bd41c: am 1c302caf: (-s ours) am c14a7fbd: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit 'f91bd41c46ec8bd085c361ea0bdf53efe13c87ca':
2013-03-11 12:31:59 -07:00
Jean-Baptiste Queru f91bd41c46 am 1c302caf: (-s ours) am c14a7fbd: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '1c302cafdd793ae250f767b88da718b916751feb':
2013-03-11 12:22:41 -07:00
Jean-Baptiste Queru 1c302cafdd am c14a7fbd: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit 'c14a7fbd895aed1ce34c0682ece5ef361f21dd1c':
2013-03-11 12:19:04 -07:00
Jean-Baptiste Queru c14a7fbd89 Reconcile with jb-mr1-release - do not merge 2013-03-11 12:15:19 -07:00
Dees_Troy cc5859fea1 Remove unused fonts from 320x480 2013-03-11 18:00:48 +00:00
Dees_Troy 146d72a739 Remove mutex from file seselector
mutex would, in some rare cases fail to lock and cause a freeze
of the GUI.

Also restored some code that was removed before and should not
have been removed to fix a bug with folder selection where you
select the same file or folder twice (e.g. select a backup on the
restore page, press back, then select that backup again.)
2013-03-11 17:46:33 +00:00
bigbiff bigbiff 998716f0cb Update exfat to newest commits
Change-Id: If15df21a556d39e6325ca8338345b698b9d8759d
2013-03-07 18:08:12 -05:00
Doug Zongker 6fd59ac07d more font improvements and cleanup
Get rid of the notion of a font's "ascent"; the reference point for
drawing is the top-left corner of the character box rather than the
baseline.  Add some more space between the menu entries and make the
highlight bar around the text.

Replace the default font.png with two images; the build system will
include one or the other based on the resolutions of the device.

Restore the original compiled-in bitmap font, to fall back on when
font.png can't be found (eg, in the charger binary).

Add support for bold text (when a font.png image is used).

Change-Id: I6d211a486a3636f20208502b1cd2aeae8b9f5b02
2013-03-07 13:34:24 -08:00
bigbiff bigbiff cdcfee48b9 use md5.c for computation of md5sums
create a framework for computing digests and reading digests in TWRP
add space for backwards compatibility with bb md5sum
Change-Id: Ia18e3f430eed5eba22e5052d39b9b8d88ecd4536
2013-03-07 08:07:34 -05:00
Doug Zongker 55a36ac1e0 recovery: change font for menus to be an image
Instead of representing the font used for menus and log messages in
the recovery binary, load it from a resource PNG image.  This allows
different devices to substitute their own font images.

Change-Id: Ib36b86db3d01298aa7ae2b62a26ca29e6ef18014
2013-03-04 16:37:44 -08:00