Commit Graph
7512 Commits
Author SHA1 Message Date
Doug Zongker 0ccaccf7d0 am 044a0b4d: recovery: try to write EMMC partitions more reliably
* commit '044a0b4d49a11edfa13471ce20914b0514eb7e0e':
  recovery: try to write EMMC partitions more reliably
2013-07-08 14:09:59 -07:00
Doug Zongker 044a0b4d49 recovery: try to write EMMC partitions more reliably
Nexus 4 has flash errors that manifest during large writes (eg, of the
radio partition).  Writes of some blocks seem to be dropped silently,
without any errors being returned to the user level.

Make two changes to the partition-writing code:

- break it up into 1MB writes instead of writing partitions with a
  single fwrite() call.  Pause for 50ms in between every chunk.

- read the partition back after writing and verify that we read what
  we wrote.  Drop caches before reading so we (hopefully) are reading
  off the actual flash and not some cache.

Neither of these should be necessary.

Bug: 9602014

Change-Id: Ice2e24dd4c11f1a57968277b5eb1468c772f6f63
2013-07-08 12:59:22 -07:00
Dees_Troy 8b7c1b7dec Remove unneeded touch code changes 2013-07-08 13:13:28 +00:00
Dees_Troy 9309fad4ca Fix background image for 1920x1200 2013-07-06 13:19:21 +00:00
Dees_Troy e7e0ae87df Update themes
Change-Id: Iedb50aca0132259bfe4297e187dbc2d40a38a34b
2013-07-05 16:09:04 +00:00
Dees_Troy d93bda5916 2.6.0.0
Also copy recovery.fstab to cache and create a storage.fstab in
cache for app/apk use.
2013-07-03 19:55:35 +00:00
bigbiff bigbiff 004e2df74a update to newest exfat changes 2013-07-03 14:52:12 -04:00
Vojtech Bocek c5754cf935 Rewrite TWFunc::Exec_Cmd() to use pipe() instead of popen()
* popen causes crashes on some devices
2013-07-03 13:28:00 -05:00
Hashcode 232b9fd7ed graphics: update BOARD_HAS_FLIPPED_SCREEN function to work with 16bpp or 32bpp
Change-Id: I93391596eece6b08ecf2e54f443e9821573cb871
2013-07-03 11:19:17 -07:00
Trevor Drake 27fab9b26a Add additional build variable checks to Android.mk files
This was causing the mm command to fail when it was run from
bootable/recovery and no crypto features had been specified in
a device's configuration files

Change-Id: Iddbeea5349bbf75cddb0250cd71821dfe3b7b9d8
2013-07-03 18:13:43 +00:00
yetta_wu 5b468fc930 recovery: init backgroundIcon properly to avoid recovery mode crash
We met factory issue that some devices would crash in recovery mode
because the backgroundIcon array did not reset to NULL when initializing.

Bug: 9568624
Change-Id: I13c7a7cc1053a7ffdbadd71740c1a2b4a2af6bba
Signed-off-by: yetta_wu <yetta_wu@asus.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-07-02 12:35:58 -07:00
Doug Zongker f24fd7e847 recovery: copy logs to cache more aggressively
Copy logs to /cache immediately upon a package installation failure;
don't wait for recovery to finish.  (If the user reboots without
exiting recovery the "right" way, the logs never get copied at all.)

Change-Id: Iee342944e7ded63da5a4af33d11ebc876f6c0835
2013-07-02 11:43:25 -07:00
Vojtech Bocek 4d4b3361f3 Properly free blkid_probe in TWPartition::Check_FS_Type()
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-07-01 15:50:15 -05:00
Dees_Troy 43132fb976 Update SuperSU binary 2013-07-01 15:50:01 -05:00
Dees_Troy f100c94f17 Fix saving of backup list 2013-07-01 15:49:47 -05:00
Dees_Troy 1872795445 Fix issue with save/load of zip location 2013-07-01 15:49:33 -05:00
Dees_Troy 59df9264e3 Fix backup of datadata
Change-Id: Ib0098542599283787592ba08caa070dc818d6111
2013-07-01 20:48:43 +00:00
Dees_Troy 76543db6e6 Fix MTD Mounting
Pulled part of change from kokotas in this patch set:
http://review.teamw.in/#/c/586/

Change-Id: If1c5b1563df16f9c561c94f61010f6a99f36efa0
2013-07-01 15:36:02 -05:00
Dees_Troy ee4b6c8112 Merge "Update init.rc to fix sideload" into twrp2.5 2013-07-01 15:35:39 -05:00
Dees Troy c322a1bc50 Merge changes I0d9133d6,I10355093 into twrp2.5
* changes:
  Do not render the GUI when the blanktimer turns off the display.
  Console Render Bug caused by touch drag event
2013-07-01 15:34:53 -05:00
Dees Troy 5bd571b62c Merge "verifier_test : fix the call to verify_file" into twrp2.5 2013-07-01 15:30:28 -05:00
Dees_Troy d86400b598 Fix touch on some Samsung devices
Change-Id: I3e2a67979c60a8e9f37f46f4fb0b0682c56ec95b
2013-07-01 20:27:21 +00:00
Dees_Troy fb903216df Merge "Allow for more input devices" into twrp2.5 2013-07-01 15:24:16 -05:00
Dees_Troy 243f9d899c Merge "Fix write_raw_image to work with mmc" into twrp2.5 2013-07-01 15:24:01 -05:00
Dees_Troy 35813e66da Merge "Fix CFLAGS for Samsung decrypt" into twrp2.5 2013-07-01 15:23:35 -05:00
Talustus 3019a9172b FB2PNG: Add fb2png source to TWRP
* Add Source of fb2png to TWRP tree
  * Android.mk by PhilZ-cwm6
  * Makefile for CrossCompiling via external toolchan by me (Talustus)

Change-Id: If9680688df6e4c9c567f74f46dfc303566b868ba
2013-07-01 20:22:17 +00:00
Dees_Troy 74fb2e94d5 Fix some issues with wipe partition list
Change-Id: Ie7d5878faf86b8fa824b72211be7fd3596b471d7
2013-07-01 20:20:58 +00:00
yetta_wu 4d4b233eae am 2f6877a0: recovery: init backgroundIcon properly to avoid recovery mode crash
* commit '2f6877a0220475303907203308c018d789ea1a53':
  recovery: init backgroundIcon properly to avoid recovery mode crash
2013-06-25 12:56:12 -07:00
yetta_wu 2f6877a022 recovery: init backgroundIcon properly to avoid recovery mode crash
We met factory issue that some devices would crash in recovery mode
because the backgroundIcon array did not reset to NULL when initializing.

Bug: 9568624
Change-Id: I13c7a7cc1053a7ffdbadd71740c1a2b4a2af6bba
Signed-off-by: yetta_wu <yetta_wu@asus.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
2013-06-25 12:50:20 -07:00
Dees_Troy 83bd483f3d Support encrypted backup files
Also includes features merged from:

Update twrpTar by kokotas

Revised function entryExists().
Added function to get archive's uncompressed size.
Added option to exclude item(s) from the archive.
Revised forks()

http://review.teamw.in/#/c/590/

Change-Id: I01fa2c81643161984eff2625247af75990684bd9
2013-06-22 16:16:55 -05:00
Todd Poynor 2f2c98869b start healthd in recovery
Change-Id: I16e3e0ddb8ca062431deb4be83c5be5eb786d76f
2013-06-18 17:51:13 -07:00
Dees_Troy 0cd4cc24ca Update init.rc to fix sideload 2013-06-09 20:56:38 +00:00
gordon1337 0d9133d654 Do not render the GUI when the blanktimer turns off the display.
Normally, when the display has been turned off by blanktimer, the GUI actually still renders the GUI elements (eg. progressbar while doing backup/restore/etc.)
This patch will check whenever the display is turned off, and if it is turned off simply dont render. This avoids heating up the device and will save battery.
2013-06-08 14:17:07 +02:00
gordon1337 1035509376 Console Render Bug caused by touch drag event
With starting the console the touch drag event is active without even touching the display.
This causes to render the console at any time it is displayed, which consumes alot of battery and heats up the device.
What the patch does is resetting the touch drag state to ensure it is only re-rendering the console when it it really needed.
2013-06-08 14:15:32 +02:00
Doug Zongker 7839f64baf am 8cd12112: am d51bfc9b: Merge "Fix the potential segmentation fault"
* commit '8cd12112e444e01163526fe6ab237f6164b0018b':
  Fix the potential segmentation fault
2013-06-04 12:17:42 -07:00
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