Commit Graph

9577 Commits

Author SHA1 Message Date
Vojtech Bocek cbe764c42b Fix missing closedir() in Find_File::Find_Internal()
Change-Id: Ie74570d3203be347390ca74bd00429bde87d6741
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-05-31 14:22:07 +02:00
Vojtech Bocek 277f742514 Add script to convert TrueTypeFonts to TWRP's .dat format
Change-Id: I3d6cc65a83b7da9428adf37804cf9cbd0df99492
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-05-31 14:21:19 +02:00
bigbiff bigbiff a886ea6e27 Add /system/priv-app to fix permissions code. New in jellybean.
Change-Id: Id1df17cf06d1158642aa77bef5fd49b596c7906e
2014-05-31 14:20:51 +02:00
Doug Zongker c704e06ce5 disable async reboot during package installation
The default recovery UI will reboot the device when the power key is
pressed 7 times in a row, regardless of what recovery is doing.
Disable this feature during package installation, to minimize the
chance of corrupting the device due to a mid-install reboot.  (Debug
packages can explicitly request that the feature be reenabled.)

Change-Id: I20f3ec240ecd344615d452005ff26d8dd7775acf
2014-05-23 08:52:31 -07:00
Doug Zongker ffb557d351 am 502e4595: am d1c64060: am 5fbb729f: Merge "exit instead of return if sideload file creation fails"
* commit '502e45957420484eec2367e7580e9bec96605c5d':
  exit instead of return if sideload file creation fails
2014-05-16 17:49:39 +00:00
Doug Zongker 502e459574 am d1c64060: am 5fbb729f: Merge "exit instead of return if sideload file creation fails"
* commit 'd1c64060abf8a56a259c0913244448fdba245f6c':
  exit instead of return if sideload file creation fails
2014-05-16 17:48:04 +00:00
Doug Zongker d1c64060ab am 5fbb729f: Merge "exit instead of return if sideload file creation fails"
* commit '5fbb729f3eb67c9bb59580f692a31e5c50e24e6d':
  exit instead of return if sideload file creation fails
2014-05-16 17:45:18 +00:00
Doug Zongker 5fbb729f3e Merge "exit instead of return if sideload file creation fails" 2014-05-16 17:42:12 +00:00
Doug Zongker ddb1b74498 am c4804e9b: am d4592694: am 3ca99f6c: Merge "fix vulnerability in bspatch"
* commit 'c4804e9b9c143652d17441b4b672b920b11cc94a':
  fix vulnerability in bspatch
2014-05-16 15:09:35 +00:00
Doug Zongker c4804e9b9c am d4592694: am 3ca99f6c: Merge "fix vulnerability in bspatch"
* commit 'd4592694b41d5f8309d98cd3312b5486216cc685':
  fix vulnerability in bspatch
2014-05-16 15:06:23 +00:00
Doug Zongker d4592694b4 am 3ca99f6c: Merge "fix vulnerability in bspatch"
* commit '3ca99f6cb8ffbe19c7ef5409f3dac18ea0c254bd':
  fix vulnerability in bspatch
2014-05-16 15:03:24 +00:00
Doug Zongker 3ca99f6cb8 Merge "fix vulnerability in bspatch" 2014-05-16 14:58:33 +00:00
Doug Zongker eed6483638 am 0766cdf4: am d2fb4ed5: am d27aa76a: Merge "Support BGRA framebuffer"
* commit '0766cdf49acb77677864995e931eec391243505d':
  Support BGRA framebuffer
2014-05-13 22:24:06 +00:00
Doug Zongker 0766cdf49a am d2fb4ed5: am d27aa76a: Merge "Support BGRA framebuffer"
* commit 'd2fb4ed58997afd18bd2b5274bf1835644d454fb':
  Support BGRA framebuffer
2014-05-13 22:19:37 +00:00
Doug Zongker d2fb4ed589 am d27aa76a: Merge "Support BGRA framebuffer"
* commit 'd27aa76a6ff6436cfb8340bf3d04aba186cc4de1':
  Support BGRA framebuffer
2014-05-13 22:15:14 +00:00
Doug Zongker d27aa76a6f Merge "Support BGRA framebuffer" 2014-05-13 22:09:40 +00:00
Daniel Leung f766396d99 Support BGRA framebuffer
The re-designed recovery graphics code only supports RGB{_,X,A}
framebuffer, and this patch adds support for BGRA framebuffer.

Change-Id: I3780c8288088f497fa248f3492c54f43834a8598
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Reviewed-by: Jovanovic, Radivoje <radivoje.jovanovic@intel.com>
Reviewed-by: Parkinson, TimothyX L <timothyx.l.parkinson@intel.com>
Tested-by: Parkinson, TimothyX L <timothyx.l.parkinson@intel.com>
Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
Reviewed-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com>
2014-05-13 15:00:40 -07:00
Doug Zongker 8c7457a2c5 am 48abd574: am 34ff5fe3: am 74b90b30: Merge "screen_ui: Initialize text buffer"
* commit '48abd574cb1b7b0adbe1de36224fb974182aaa2d':
  screen_ui: Initialize text buffer
2014-05-13 17:38:15 +00:00
Doug Zongker 48abd574cb am 34ff5fe3: am 74b90b30: Merge "screen_ui: Initialize text buffer"
* commit '34ff5fe3f59abfb1984189ade32059cc47bf97e5':
  screen_ui: Initialize text buffer
2014-05-13 17:31:51 +00:00
Doug Zongker 34ff5fe3f5 am 74b90b30: Merge "screen_ui: Initialize text buffer"
* commit '74b90b309f67dc3b8bb74e47c4eddf7ce511bc35':
  screen_ui: Initialize text buffer
2014-05-13 17:28:54 +00:00
Doug Zongker 74b90b309f Merge "screen_ui: Initialize text buffer" 2014-05-13 17:25:52 +00:00
Doug Zongker 4aa12dd0de fix vulnerability in bspatch
Patches with control data tuples with negative numbers in the first
and/or second can cause bspatch to write to arbitrary locations in the
heap.

Change-Id: I8c5d81948be773e6483241131d3d166b6da27cb8
2014-05-13 08:40:49 -07:00
Michael Runge f5d9f89152 Allow 0-byte files in full OTAs.
Currently, the writeProcessFunction fails when
there are zero bytes to write, potentially returning
errno from a previous operation, or hanging
indefinitely while it waits for a >0 result on a
write of size 0.  This happens when the output
file is intended to be zero bytes in size.

Change-Id: Ib3cfcaf66d82942bc89e5f5c64697862403b38da
2014-05-09 18:09:28 +00:00
Greg Hackmann 64e7fcd925 am e9f9238a: am 1cd52423: am 1c2cf1db: Merge "recovery: minui: add adf backend"
* commit 'e9f9238af83f949dc000667356eba025e1241a2f':
  recovery: minui: add adf backend
2014-05-02 23:26:42 +00:00
Greg Hackmann e9f9238af8 am 1cd52423: am 1c2cf1db: Merge "recovery: minui: add adf backend"
* commit '1cd5242349bb1ef10eca76ff2c3e17415aecdf9d':
  recovery: minui: add adf backend
2014-05-02 23:23:14 +00:00
Greg Hackmann 1cd5242349 am 1c2cf1db: Merge "recovery: minui: add adf backend"
* commit '1c2cf1db0db2c9e9310d27bdc19c605f5537b72f':
  recovery: minui: add adf backend
2014-05-02 23:20:14 +00:00
Greg Hackmann 1c2cf1db0d Merge "recovery: minui: add adf backend" 2014-05-02 23:15:54 +00:00
Dees Troy 62b75ab66a Update minui to support overlay graphics
Fix path in minuitwrp for includes

Change-Id: I9e9e5f67e8574cdcbc6f8873ceeb56eab71143ed
2014-05-02 16:51:52 +00:00
Michael Runge aa1a31e83d Allow lines without = signs.
The new build.prop for Sprout includes lines of the format:
import xxx.prop

These can be safely ignored when reading the property file.

Change-Id: Ia84a138e71461ffe8e591e88143b9787873def29
2014-05-01 18:37:40 -07:00
Steve Kondik 626009f1b0 recovery: Compatibility with upstream minui change
* minui is changing a lot upstream. We won't merge it here, but
   it's being used in another branch. Add compatibility in CWM
   so that we can move forward.

Change-Id: I6866ec2e4dbbb3e7682595aef91645b6de547435
2014-04-30 13:25:41 -07:00
Bill Yi ff5fc6c809 am ddaaccb3: am 29759e9d: Merge commit \'25c2b2f670a3b11f7ce78eccde10c1a79188c9a8\' into HEAD
* commit 'ddaaccb3db623ff6f19b7dadf51d41cc46bb05c3':
2014-04-30 00:52:59 +00:00
Bill Yi ddaaccb3db am 29759e9d: Merge commit \'25c2b2f670a3b11f7ce78eccde10c1a79188c9a8\' into HEAD
* commit '29759e9d518880adba366c502cf79d53c48a31bb':
2014-04-30 00:49:24 +00:00
Bill Yi 29759e9d51 Merge commit '25c2b2f670a3b11f7ce78eccde10c1a79188c9a8' into HEAD 2014-04-29 11:32:53 -07:00
Greg Hackmann 41909ddefb recovery: minui: add adf backend
Change-Id: I1ad97b5b62bddbcb1104fa0b4e54415b793a4194
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2014-04-25 15:47:34 -07:00
Benoit Goby 5ec6f4daaf am 9e8d81ba: am 0e22af65: recovery: Fix adb with linux 3.10
* commit '9e8d81ba96b299cc084723797d9f492d4441d57a':
  recovery: Fix adb with linux 3.10
2014-04-18 19:16:11 +00:00
Benoit Goby 9e8d81ba96 am 0e22af65: recovery: Fix adb with linux 3.10
* commit '0e22af658c89fb53ab1215a3538bbaf10d733ad9':
  recovery: Fix adb with linux 3.10
2014-04-18 19:12:40 +00:00
Benoit Goby 0e22af658c recovery: Fix adb with linux 3.10
In kernel 3.10, f_adb has been removed and adbd can use functionfs
instead. Mount functionfs on boot for adbd. On older kernels, mount
will fail silently and adbd will revert to f_adb.

Bug: 14160609
Change-Id: I5db57aaf35b35859ea88c7d0e0661d8c553e5811
2014-04-18 12:05:30 -07:00
Matt Mower ed71fa3e82 Only setup settings,andsec partitions if available
Change-Id: Iafedcec9e6ba368e29e32ab7a92d774cdd3f64e1
2014-04-16 21:58:07 +02:00
Matt Mower d5c1a9220d More MD5 verification error handling
Distinguish between skipped md5 verification cases:
 - .md5/.md5sum file not found
 - .md5/.md5sum file unreadable

Move MD5 error messages to twrpDigest

Change-Id: I912e3d9ebe64e78bed76eab8aa468d619b45972f
2014-04-16 21:46:53 +02:00
Ethan Yonker fc966505e5 Make blank timer read brightness path from data manager
After implementing the find_file class, the blank timer code
needed to be updated to pull the brightness path from the data
manager instead of using the build flag to ensure that we use the
proper path for brightness.

Change-Id: I084983ac0bd68b2fcdd69b93c2d18e2862ba0c77
2014-04-16 13:30:57 -05:00
Ethan Yonker eeed3c55d8 Fix handling of storage with data/media vs data/media/0
Sometimes loading the values from the settings file may set the
storage path to /data/media when the proper path is /data/media/0
This commit will grab the storage path from the partition manager
to ensure that we are using the proper path.

Change-Id: Ibfd63125a2b9705319eb55b09c7e65391757bbc2
2014-04-16 12:07:45 -05:00
Vojtech Bocek 0b7fe504dc Add support for actions triggered by key combination
Change-Id: I9dfa7de40229f00412d63fc9c1eb3a809a6eb2e6
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-04-16 17:51:17 +02:00
Ethan Yonker 9c102b536d Add additional search path for brightness
Change-Id: Ib1f032d87aafd7732d460caeca1e3ae6745a563d
2014-04-16 17:35:37 +02:00
Matt Mower bf4efa39e4 Support alternative .android_secure location
Some devices (jewel, m8) have .android_secure at a non-standard
location. Allow a different partition to be specified as the home of
.android_secure using the fstab flag 'andsec'.

Using the /data/media variant of jewel as an example, recovery.fstab or
twrp.fstab could be edited like follows:

/external_sd  vfat  /dev/block/mmcblk1p1  flags=display="MicroSD";andsec

Note, this is NOT a method to move .android_secure in your ROM. Your ROM
must already write to this alternative location.

Change-Id: I3a6e4e63aaddb35870b79e80938b0f9c2c902443
2014-04-16 17:30:26 +02:00
Matt Mower 0251abc485 Support .md5sum extension for package verification
Change-Id: Idb6df99251726e5415b415ea6ae55337b96b2dbb
2014-04-15 18:09:30 +02:00
Matt Mower 50248ab86b Simplify twrpTar skip dir checks, DU code cleanup
* Remove unused parent variable from twruDU constructor

* Replace manual checks for /data/media with DU's check_skip_dirs()
  function

* Remove check_skip_dirs(A,B) function which duplicates the
  functionality of check_skip_dirs(A)

* Remove redundant trailing slash removal from
  check_absolute_skip_dirs(); this function is only accessed through
  check_skip_dirs()

Change-Id: Icfe8d71de36e33db6749fc5896dd3eafbcf7c9a4
2014-04-15 15:28:45 +02:00
J. Carlos Romero 85ceaf1b31 Enable rk30xx hack
Fix problem with erase/restore mtd partitions on Rockchip SoC

Change-Id: I3320f711446441cf79e38e9ffb5dfdb6b1717a55
2014-04-15 15:28:26 +02:00
Ethan Yonker 1ecaca7d0b Allow device files to specify a custom theme
Change-Id: I360f93e70c6a48eed502a5aacd6d8d654ca7b570
2014-04-15 15:27:53 +02:00
Ethan Yonker 0c9d049b6e Improve handling of shell symlink in recovery ramdisk
Change-Id: I06351f8ecdfe5b119bbae0d6800258adef844c66
2014-04-15 15:27:19 +02:00
Ethan Yonker d5801c5fe2 Force zip verification in OEM builds
Change-Id: Ie894b5f5cda64f83b1bb58bb977024230b0337f2
2014-04-15 15:27:00 +02:00