1. 27 Nov, 2017 1 commit
  2. 17 Nov, 2017 1 commit
    • nkk71's avatar
      Auto detect possible use of legacy props · b4c35913
      nkk71 authored
      * Revert: Make legacy props an option disabled by default
        (reverted from commit 75aa6157)
      * Instead check for ANDROID_PROPERTY_WORKSPACE in the updater-
        binary to determine whether legacy property service can be
      Change-Id: If68d5cca9a2b56edcb1c73db0474668cf46d8c91
  3. 08 Sep, 2017 1 commit
  4. 17 Jun, 2017 1 commit
    • bigbiff bigbiff's avatar
      twrpDigest refactor · 56cf5646
      bigbiff bigbiff authored
      This patch is to refactor twrpDigest using polymorphism
      and inheritance to use the same call patterns for creating and
      reading a digest. Now a library.
      Use SHA2 from libcrypto. SHA2 is default if device has libcrypto.
      Change string MD5 everywhere to use digest or Digest instead. Updated
      string tags to digest. Translation will be required.
      Switch out digest code into a driver class from partitionmanager.
      SHA2 is better for digest creation due to decreased collision space
      compared to MD5 and SHA1.
      See https://en.wikipedia.org/wiki/SHA-2
      Change-Id: I74b5546789990b12aa4ce2e389d25f80a3fe213f
  5. 05 Dec, 2016 1 commit
  6. 30 Nov, 2016 1 commit
    • James Christopher Adduono's avatar
      MD5 verification sanity · 79ae093c
      James Christopher Adduono authored
      We can use switches and enums to make things more understandable
      and work with results in a more sensible manner.
      PS2: Move file MD5 verification and error handling into
           a separate function to reduce code.
      PS3: Default to false in Check_Restore_File_MD5 function
      Change-Id: Id3ee0bb444cf13be67bb5dec2c43f7c26a86b954
      (cherry picked from commit 5c3950716e5c7c6279efd5f3f338d6d22e5215e2)
  7. 29 Aug, 2016 1 commit
  8. 27 Aug, 2016 1 commit
  9. 25 Aug, 2016 1 commit
  10. 29 Mar, 2016 1 commit
  11. 19 Dec, 2015 1 commit
    • Ethan Yonker's avatar
      Multiple Language Support · 74db157b
      Ethan Yonker authored
      This is similar to https://gerrit.omnirom.org/#/c/14014
      A lot of the features built in the older patch set have been split
      out into separate patches, most of which have already been merged.
      The remaining functionality here should all be directly related to
      language selection and loading. We always load English as a base
      before loading other languages over the top of the base. The idea
      is that if another language is missing a translation, then we will
      still display the English.
      Maybe still to do: read the /cache/recovery/last_locale file and
      load a language based on that. For me, this file contains just:
      We probably won't bother with region specific translations so we
      would have to look at either trimming off the _US or using some
      other method like perhaps a symlink or a combination of the two.
      Thanks to _that for twmsg.cpp class
      Change-Id: I9647a22e47883a3ddd2de1da51f64aab7c328f74
  12. 12 Nov, 2015 1 commit
  13. 15 Oct, 2015 1 commit
    • that's avatar
      Improve error handling for zip install · 5064048e
      that authored
      - minzip: don't crash with corrupted zips (e.g. 4096 null bytes)
      - twinstall: output error when zip doesn't contain update-binary
      - twinstall: add strerror(errno) to system-level errors
      - twinstall: correct message if /file_contexts could not be extracted
      - twinstall: use TWFunc::Wait_For_Child for better waitpid errors
      - twinstall: minor code cleanup
      Change-Id: I53b156b0ec08755af2742bb71d1523ae38f4a82e
  14. 10 Dec, 2014 1 commit
    • Ethan Yonker's avatar
      Use one mizip for all · 738be7a3
      Ethan Yonker authored
      The new minzip did not compile in older trees due to needing
      mmap64. For older trees we will just use mmap instead. Remove all
      files and code pertaining to minzipold. Updater should now build
      properly in older trees as well.
      Eliminate use of PLATFORM_VERSION in favor of PLATFORM_SDK_VERSION
      which should be more consistent and reliable.
      Change-Id: I38d2b604a73d1b17a2072c7d60e990b81ece0c10
  15. 02 Dec, 2014 1 commit
    • Ethan Yonker's avatar
      Make the android-5.0 branch compile in 4.4 to 4.1 · 75bf041a
      Ethan Yonker authored
      Migrate previous minzip to minzipold replacing the existing
      minzipold. This will break compatibility with trees that do not
      support selinux (ICS and older). Migrate former verifier files to
      Add fuse.h to recovery source because older trees do not have it.
      Add LOCAL_MODULE_TAGS where needed for 4.1 tree.
      Change-Id: Iade57cb2b0115af7fce9f56aa98636b1744a1ef4
  16. 08 Nov, 2014 1 commit
  17. 07 Nov, 2014 2 commits
  18. 16 Apr, 2014 1 commit
    • Matt Mower's avatar
      More MD5 verification error handling · d5c1a922
      Matt Mower authored
      Distinguish between skipped md5 verification cases:
       - .md5/.md5sum file not found
       - .md5/.md5sum file unreadable
      Move MD5 error messages to twrpDigest
      Change-Id: I912e3d9ebe64e78bed76eab8aa468d619b45972f
  19. 15 Apr, 2014 1 commit
  20. 27 Mar, 2014 2 commits
  21. 09 Mar, 2014 1 commit
    • that's avatar
      Support pre-KitKat properties for update-binary · 7e303cfe
      that authored
      Google changed the in-memory format for storing properties in 4.4.
      Zips containing an older update-binary expect the old format, otherwise
      assertions on properties in the update script fail.
      This is just enough of the old property service to copy the properties
      to the legacy format before running the updater.
      Change-Id: I404680384bdc5e952609e295029ab0a0faf743a5
  22. 24 Oct, 2013 1 commit
  23. 22 Oct, 2013 1 commit
  24. 10 Sep, 2013 1 commit
  25. 05 Sep, 2013 1 commit
    • Dees_Troy's avatar
      Extract file_contexts from zips if it exists · 512376cc
      Dees_Troy authored
      Update binary will now extract file_contexts if it exists in the
      root of the zip to /tmp
      Recovery will replace the existing /file_contexts in the ramdisk
      if file_contexts exists in the root of the zip.
      This ensure that the proper contexts are used during zip installs.
      Change-Id: If22c41101868643b67e6dba6177677c078fcd877
  26. 24 Aug, 2013 1 commit
  27. 04 Apr, 2013 1 commit
  28. 07 Mar, 2013 1 commit
    • bigbiff bigbiff's avatar
      use md5.c for computation of md5sums · cdcfee48
      bigbiff bigbiff authored
      create a framework for computing digests and reading digests in TWRP
      add space for backwards compatibility with bb md5sum
      Change-Id: Ia18e3f430eed5eba22e5052d39b9b8d88ecd4536
  29. 30 Jan, 2013 1 commit
  30. 27 Sep, 2012 1 commit
  31. 20 Sep, 2012 1 commit
    • Dees_Troy's avatar
      Various fixes · c51f1f99
      Dees_Troy authored
      Modify AOSP mount and wipe functions to use Partition Manager.
      Update wipe code to reset the log file index when wiping cache.
      Add ADB sideload to 540x960 theme.
  32. 14 Sep, 2012 2 commits
    • Dees_Troy's avatar
      Move to shared libmincrypt · b9d88acd
      Dees_Troy authored
      Remove mincrypt source from TWRP and add rule to make
      libmincrypt as a shared library.
      No more crashes during zip signature verification and
      less code to maintain in TWRP.
    • Dees_Troy's avatar
      Add wipe functions, compiles in CM7, text shows in UI, zips install · 38bd760b
      Dees_Troy authored
      Zip install works, had to move mincrypt code into TWRP to prevent
      a crash when checking the zip signature.
      Added wipe functions
      Made it compile in CM7
      Made text show up in console and logging
  33. 12 Sep, 2012 1 commit