Commit Graph

9577 Commits

Author SHA1 Message Date
The Android Automerger 796e556e8f merge in lmp-release history after reset to 1d5d6098f4 2014-08-23 06:09:07 -07:00
Doug Zongker f2127b6435 fix two bugs in block image updater
The computation of file offsets was overflowing for partitions larger
than 2 GB.  The parsing of the transfer file could fail at the end if
the data happened to not be properly null-terminated.

Bug: 16984795
Change-Id: I3ce6eb3e54ab7b55aa9bbed252da5a7eacd3317a
2014-08-21 14:51:41 -07:00
Doug Zongker 6d3c4e8224 am 1d5d6098: fix two bugs in block image updater
* commit '1d5d6098f4a470bc8e56ae8914180041815e6e22':
  fix two bugs in block image updater
2014-08-21 18:20:18 +00:00
Doug Zongker 1d5d6098f4 fix two bugs in block image updater
The computation of file offsets was overflowing for partitions larger
than 2 GB.  The parsing of the transfer file could fail at the end if
the data happened to not be properly null-terminated.

Bug: 16984795
Change-Id: I3ce6eb3e54ab7b55aa9bbed252da5a7eacd3317a
2014-08-21 10:47:24 -07:00
The Android Automerger 314b3e31c3 merge in lmp-release history after reset to bc7ffeda98 2014-08-21 06:09:27 -07:00
The Android Automerger c96ad7837b merge in lmp-release history after reset to bc7ffeda98 2014-08-20 06:08:55 -07:00
Doug Zongker 0f5cf72f54 am bc7ffeda: installer for new block OTA system
* commit 'bc7ffeda98a861e346c30c771d3258030f7fcf21':
  installer for new block OTA system
2014-08-20 01:33:48 +00:00
Doug Zongker bc7ffeda98 installer for new block OTA system
(Cherry-pick back from master.)

Bug: 16984795
Change-Id: Ifa3d8345c5e2a0be86fb28faa080ca82592a96b4
2014-08-19 16:53:39 -07:00
The Android Automerger 7f48b43e23 merge in lmp-release history after reset to 2efc9d994c 2014-08-19 06:08:53 -07:00
Doug Zongker c0fd40159c Merge "installer for new block OTA system" 2014-08-19 02:43:23 +00:00
Doug Zongker 66f5ce387a installer for new block OTA system
Bug: 16984795
Change-Id: I90f958446baed83dec658de2430c8fc5e9c3047e
2014-08-19 13:40:15 -07:00
Doug Zongker af003a8831 am 2efc9d99: clear BCB in misc partition before rebooting
* commit '2efc9d994ce59f9ebfc2290c2adc5d760e8939c2':
  clear BCB in misc partition before rebooting
2014-08-18 23:29:21 +00:00
Doug Zongker 2efc9d994c clear BCB in misc partition before rebooting
Something is leaving behind wipe commands in the BCB area of the /misc
partition.  We don't know what is doing that.  It should always be
safe to zero out that area from uncrypt, though (because if uncrypt is
running then it's got the command we want in the recovery command file
rather than the BCB).

Bug: 16715412
Change-Id: Iad01124287f13b80ff71d6371db6371f43c43211
2014-08-18 15:55:28 -07:00
The Android Automerger e5645ff3a2 merge in lmp-release history after reset to 1a35a58690 2014-08-18 06:08:42 -07:00
The Android Automerger 3c5bfe5b58 merge in lmp-release history after reset to 1a35a58690 2014-08-17 07:14:35 -07:00
Doug Zongker cdc9828fca am 1a35a586: revert uncrypt back to dynamic linking, fix libs
* commit '1a35a586904cd429fd3a6a6c2de64a16ccdf693d':
  revert uncrypt back to dynamic linking, fix libs
2014-08-15 11:52:14 +00:00
Doug Zongker ae2b63a6c7 am 537d34f9: change uncrypt to static linking
* commit '537d34f907a5e984ccad1c88825adc8ae9814834':
  change uncrypt to static linking
2014-08-14 23:49:27 +00:00
Doug Zongker 1a35a58690 revert uncrypt back to dynamic linking, fix libs
Bug: 17029174, 17015157
Change-Id: I1d24f3402875dfb972daa6daef0f385baeff84e9
2014-08-14 10:32:46 -07:00
Ethan Yonker 3c4ac3bc32 Fix derp
Change-Id: Idf41990258361e612635980700fd694b11c1c625
2014-08-14 11:15:32 -05:00
Doug Zongker 64be82755c change uncrypt to static linking
Bug: 17015157
Change-Id: I3c4bdcf4f11d44b617bb731a48413e3707044d1c
2014-08-14 09:15:23 -07:00
Ethan Yonker 5742a40b87 Allow blacklisting input devices by build flag
Usage:
TW_INPUT_BLACKLIST := accelerometer
TW_INPUT_BLACKLIST := "accelerometer\x0agyroscope"

This can be used to fix touch input on devices where an input
device is breaking touch processing in TWRP.

We are using new line chars to separate multiple devices and in
the make file you specify the new line character with \x0a which
is the hex code in ASCII for a new line.

The new line character might be a bit of a pain to use as a
delimeter, but it is highly unlikely that an OEM will ever name
an input device with a new line character in the name.

Change-Id: I255136b7a686909a23e649918c661843153c2853
2014-08-14 10:05:40 -05:00
Doug Zongker 537d34f907 change uncrypt to static linking
Bug: 17015157
Change-Id: I3c4bdcf4f11d44b617bb731a48413e3707044d1c
2014-08-14 08:01:17 -07:00
xNUTx e85f02dd91 Support reading since_epoch and secondary brightness files
TWFunc::Fixup_Time_On_Boot: Will now try to read
/sys/class/rtc/rtc0/since_epoch to correct time, if that fails
it will try to use the ats files to correct time.

TWFunc::Set_Brightness: One single function to set brightness
from both the automated functions and the gui actions. It is
able to set a second brightness path if present, it will set
them both the same value. Many Sony devices have 2 brightness
files in the sysfs that must be set to properly set the
brightness.

Change-Id: I7ca582109085dfbcb46b8de73ad031e4b7903fca
2014-08-10 08:57:14 -05:00
xNUTx cd56f8cb29 TW_SCREEN_BLANK_ON_BOOT will jolt the screen/touch driver.
If on the default settings the screen will only kick in to action
AFTER it has gone to sleep once and has been woken up again with a
key press, this will be needed to set to 'true' in the
BoardConfig.mk

The code was already there, Dees_Troy and I thought it would be
nice to make it a switch to control at compile time.

Change-Id: I5116a27afe9cba57122761c192ea3ee153d98162
2014-08-10 07:59:35 -05:00
Ethan Yonker 03a42f6c6a Add command line capabilities
Allows sending openrecoveryscript commands to TWRP via shell.
This may be handy for visually impaired users, for various one
click utilities to drive TWRP commands from a computer, for using
TWRP when a catastrophic hardware failure like a shattered screen
prevents you from being able to use touch, or even on devices like
a TV stick where touch and USB mouse input is unavailable.

This patch also includes a few minor changes to openrecoveryscript
including proper support for rebooting via the script and for
decrypting the device via the command line.

Change-Id: I796ad168efdd2da9c25334ac93d1079daaa7b0bc
2014-08-09 07:49:35 -05:00
Ethan Yonker b24caab14c Set font based on resolution if not set already
Change-Id: I6efaeb1c508c06513ac9ace7aa72a2eefa0cb1bb
2014-08-07 09:28:04 -05:00
Adam Outler 6f6a1d6dc7 removing logging test file
updating gitignores to keep file from coming back
adding gedit backups to gitignores

Change-Id: I36d55983b34d47763cb56abf784381c06d951302
2014-08-07 15:48:16 +02:00
Adam Outler 7f9906d0b6 remove stray test file
exfatfsck: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=c91c3e4c1e542e4a40bcad47ac747f62fb7312f9, not stripped

Change-Id: I32472d460a8f03776e1d215810c537b029789220
2014-08-07 15:47:47 +02:00
Vojtech Bocek 18d7c98688 Add possibility to use images as background or handle of slidevalue
* Add tag <resource background="x" handle="y" handlehover="z" />
  to the slidervalue object.
* All images are optional, e.g. you can use just handle or just
  background image or no images whatsoever

Change-Id: Ie0fee92965c6e883c4e532732756008dcc9e385e
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-08-07 15:37:43 +02:00
bigbiff bigbiff 13baad223d update 1440x2560 keyboard mapping
Change-Id: I9777e92ca26967d41625e726383ae6aa5406161d
2014-08-07 15:37:25 +02:00
Ethan Yonker 96acb3d14d Allow using variables and addition/subtraction in variables
Change-Id: I1acba95302e414e1a471d27474508a7c48df0328
2014-08-07 15:37:01 +02:00
Dees Troy 05d18c9a74 Stop memory management on blanking overlay graphics
This prevents a crash in TWRP when trying to blank
the screen on devices that are using overlay graphics.

Change-Id: I155868616ffa1b211e97be97e4abe8b03dad7ca0
2014-08-07 15:36:33 +02:00
Andres Morales f38d6e5a36 am 9dc71cfa: Merge "Erase PST partition if its marked to be erased." into lmp-dev
* commit '9dc71cfa5233789a50d8a9d2c9af87d0f106d4ad':
  Erase PST partition if its marked to be erased.
2014-08-06 17:41:05 +00:00
Doug Zongker 1eeac62ad9 am 2b5f0e0f: remove spurious parens from error message
* commit '2b5f0e0f767ce51d9605809052ad04fe83d1df83':
  remove spurious parens from error message
2014-08-06 17:40:22 +00:00
Doug Zongker 2b5f0e0f76 remove spurious parens from error message
These error messages include empty parens after each string
substition.  Ill-advised cut and paste, probably.

Bug: 16467401
Change-Id: Ib623172d6228354afdcc2e33442cc53a07f0ecbc
2014-08-06 08:25:03 -07:00
Andres Morales 9dc71cfa52 Merge "Erase PST partition if its marked to be erased." into lmp-dev 2014-08-05 00:34:22 +00:00
Andres Morales ee19387905 Erase PST partition if its marked to be erased.
We need to wipe the challenges on this partition
if OEM unlock is enabled, as this is a signal that
the user has opted out of factory reset protection.

go/factory-reset

Bug: 16633064
Change-Id: Icb8f1433bf99ca57813f5b72d5a3dd15fa94a263
2014-08-06 09:58:55 -07:00
JP Abgrall b04d0b0dde am 78d458c3: Fix length printing + formats
* commit '78d458c3d279a24a60fda013026b7a5454d01a9b':
  Fix length printing + formats
2014-08-05 00:12:37 +00:00
JP Abgrall 78d458c3d2 Fix length printing + formats
Fix wrong argument order.
Fix for 32 vs 64 bit.

(reported by htc)

Change-Id: Ie37a280bed2848199bcc075500e1326e371cd326
2014-08-04 16:44:33 -07:00
Ethan Yonker 3d49ea7cca Add 280x280 theme
Change-Id: Iea2fac2f1b300c312819ea2d83e1762669d357b6
2014-08-04 09:14:59 -05:00
Doug Zongker 20c8d0075f am eaf33654: only do uncryption on packages in /data
* commit 'eaf33654c1817bd665831a13c5bd0c04daabee02':
  only do uncryption on packages in /data
2014-08-01 20:59:40 +00:00
Doug Zongker eaf33654c1 only do uncryption on packages in /data
If recovery is invoked with a package somewhere other than /data,
leave it alone.

Change-Id: Ief358b53df467ae24a65e30e7a631da59bf13683
2014-07-31 15:42:13 -07:00
Ethan Yonker e2b2902cd7 Minor tweaks to watch ui.xml files
Change-Id: I9448eed41e43c4fce575b7ed12b5270a1d75f99b
2014-07-30 09:32:59 -05:00
Ethan Yonker d9b7200824 Add 320x320 theme and split out watch.xml for square watch layout
Change-Id: I7fe38b20913a981942105637a527a2d26ed035a5
2014-07-30 08:46:38 -05:00
Ethan Yonker c49a3669a1 Update 240x240 theme
Change-Id: I1a50fa0bb750b229220c217d24253b65f24d2920
2014-07-29 11:40:07 -05:00
big biff ba535e3b6c add 1440x2560 theme to TWRP
Based on work by Chris Phelps <cphelps76@droidconcepts.com>
https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/58963336b81ea8bcc03b8d7e4dfe4598f5afc972
https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/4ec10303cb76592044c3aa449dc68a33356a6e09
https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/c48bd2412332916eafd0db727d923c8c16cd35ed
https://github.com/TEAM-Gummy/android_bootable_recovery_TWRP/commit/f0944ded30e98917ca85db0185add1207ea5f4b6
But with other original changes too.

Change-Id: I809a37a3983187e62568a1e2403b6637a692220d
2014-07-29 00:44:51 +00:00
Dees Troy 7d4cedc1d8 Revert "add 1440x2560 theme to TWRP"
This reverts commit c45181db09.

Change-Id: I9dfb2733d9eb30c32bc1e307e382ee8e4e47a0b6
2014-07-29 02:27:14 +02:00
bigbiff bigbiff c45181db09 add 1440x2560 theme to TWRP
Change-Id: I9e54d2bcfe89e1e0e3205ce2f4156cfd22dca5b5
2014-07-28 09:00:36 -05:00
Ethan Yonker 780cd39e42 Allow ui.xml to include additional xml files to read
Use common portrait and landscape xml files based on resolution
defined by the device.

Change-Id: Iec528f9d846d49857ff98de1ac201e25dbb60339
2014-07-28 08:50:59 -05:00
dhacker29 30f100e3bc Only disable recovery flash if it is truly "stock" recovery
Some roms need the recovery-from-boot.p for auto update
 of recovery. Typically the use install-[romname]-recovery.sh.
 So only disable if install-recovery.sh is present.

Change-Id: I01f89afc87b9d375d67b44b8b5e9228868a47d69
2014-07-25 23:54:10 +02:00