1. 27 Nov, 2017 1 commit
  2. 24 Feb, 2017 2 commits
    • Matt Mower's avatar
      Tweak MTP startup routine · 653a1709
      Matt Mower authored
      * As a precaution, (non-permanently) disable MTP if TWRP crashes.
      * Remove a duplicate logging of 'Starting MTP'.
      * Combine and improve readability of conditions before MTP starts.
      * Remove unnecessary Disable_MTP() call if conditions unsatisfied.
      
      Change-Id: I61ac772fc123da5b84c3061fbcf2116531bc4e2f
      653a1709
    • Matt Mower's avatar
      Fix handling of USB config during MTP switching · e07f0109
      Matt Mower authored
      The property set of sys.usb.config was not part of the original 'Only
      change USB mode to mtp when ready for MTP' commit. Further, it adds an
      additional USB off/on toggle to the MTP startup routine, potentially
      confusing the host computer. The default init.recovery.usb.rc already
      sets the usb functions to 'adb' during 'on fs'.
      
      It is possible that devices could run into issues with MTP startup due
      to sys.usb.config not yet being set. This is actually due to a poor
      design decision in Enable_MTP(), where sys.usb.config would not be
      configured for mtp if sys.usb.config had never been set. It is not
      necessary to check for a previous value, just set it.
      
      Fix the USB PID for adb-only mode in Disable_MTP().
      
      Change-Id: I21b5e64c9bdcd3104372a8b4eb8ea50cf4561892
      e07f0109
  3. 23 Feb, 2017 2 commits
    • Matt Mower's avatar
      Do not unconditionally remove MTP storage on unmount · a8e6d831
      Matt Mower authored
      * It is not necessary to Remove_MTP_Storage() for a partition if an
        MTP_Storage_ID has not been assigned.
      * The hack to force-set tw_mtp_enabled=1 should no longer be necessary
        now that we're checking whether MTP really needs to be disabled for
        a volume before running Disable_MTP().
      
      Change-Id: I1b7233eedd9da7c6be0c67fc60243f3837105173
      a8e6d831
    • Matt Mower's avatar
      Only change USB mode to mtp when ready for MTP · 84830ce0
      Matt Mower authored
      Commit 'Do not toggle USB ID during MTP startup if not needed' changed
      the default USB mode to 'mtp,adb'. Depending on the device, this can
      result in an unfortunate side effect of crashing an ORS sideload
      midway through the process (it's not clear to me whether the kernel or
      the connected computer is responsible). Only put USB into mtp mode
      when MTP storage is starting-up.
      
      The hack to change the USB mode to adb when a user compiles TWRP
      without MTP support is no longer necessary now that 'adb' is the
      startup mode.
      
      Change-Id: I8ed13d6ab8e85621533997b8c37ef7ebec0fcf85
      84830ce0
  4. 18 Jan, 2017 4 commits
  5. 13 Dec, 2016 1 commit
  6. 30 Nov, 2016 1 commit
    • Ethan Yonker's avatar
      Improve backup & wipe exclusion handling · 3fdcda46
      Ethan Yonker authored
      Rename twrpDU.* to exclude.*
      Remove global variable for du and replace with partition specific
      variables.
      Use separate exclusion lists for backups and wiping.
      Clean up some includes
      Fix some parenthesis in twrp.cpp that I messed up.
      
      Note: twrpTarMain command line utility compiles but probably does
      not work correctly yet due to not properly setting part_settings
      
      Change-Id: Idec9c3e6a8782ba53f3420fa79ba33394f4f85fb
      3fdcda46
  7. 26 Aug, 2016 1 commit
  8. 25 Aug, 2016 1 commit
  9. 22 Aug, 2016 1 commit
  10. 18 Jan, 2016 1 commit
  11. 22 Dec, 2015 1 commit
    • Ethan Yonker's avatar
      Append AOSP recovery commands inline · 3aa66be4
      Ethan Yonker authored
      Appending the AOSP recovery commands to the ORS command file as
      we process the commands will allow us to do things such as install
      multiple zip files, wipe cache, etc and do the actions in the
      order that those actions were originally requested.
      
      Change-Id: I375c1ccd3976123b818f1f492e971e615ec28c91
      3aa66be4
  12. 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:
      en_US
      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
      74db157b
  13. 02 Dec, 2015 1 commit
    • Matt Mower's avatar
      Fix short circuit on tw_mount_system_ro · 95460190
      Matt Mower authored
      Before mounting /system to check if supersu should be installed (a
      feature which really needs to be stripped from TWRP), check if
      tw_mount_system_ro is set to zero, not the other way around.
      
      Change-Id: I38386b4c88fab112de5b6b752ecd4eed308efa5a
      95460190
  14. 05 Nov, 2015 1 commit
    • Ethan Yonker's avatar
      Treat /vendor like /system for read only · 1673e3d4
      Ethan Yonker authored
      The vendor partition is verity checked just like system so we
      should treat vendor as read only same as system.
      
      Change-Id: Ida65c9f44d8610e52fcdcef0b4a50faf5c7110d2
      1673e3d4
  15. 14 Oct, 2015 1 commit
    • Davis Mosenkovs's avatar
      Fix minor interface bug: No-SU prompt after no-OS prompt · b909aae7
      Davis Mosenkovs authored
      When /system is wiped in TWRP and afterwards Reboot -> Recovery is selected the "No OS is installed, are you sure you want to reboot?" prompt appears. After swiping to "Reboot anyway" the "Current ROM is not rooted, do you wish to install SuperSU?" prompt appears.
      This change removes "Do you wish to install SuperSU" prompt after "No OS installed" prompt.
      
      Change-Id: Ie1157afdf5cf1cb81d6647269172d6e63af9f4b0
      b909aae7
  16. 26 Aug, 2015 1 commit
    • Ethan Yonker's avatar
      Fix up some TW_OEM_BUILD things · 89583ef0
      Ethan Yonker authored
      Fix factory reset now properly formats data as expected
      Change text for ORS processing
      Disable system read only check, SuperSU, and patch system
      Stop copying fstab and version to cache
      
      Change-Id: I20f5cae390afbb8d2d88e01b8d9b9bf4ff0fdea1
      89583ef0
  17. 14 Jul, 2015 1 commit
    • Ethan Yonker's avatar
      Make system read only show no matter what on first TWRP boot · 961d20e0
      Ethan Yonker authored
      Initial value for tw_mount_system_ro is now 2. If the value of
      tw_mount_system_ro is 2 during boot, then we will show the system
      read only prompt and ignore the value from the lifetime writes
      check.
      
      Note: Changed the value of FILE_VERSION which will trigger the
      data manager to throw out previous settings and start with default
      values so that existing TWRP users will get the prompt at least
      once.
      
      Change-Id: I447767b64617f855156a19a5dc15c4ece6dff7b8
      961d20e0
  18. 09 Jun, 2015 1 commit
  19. 27 May, 2015 1 commit
    • Ethan Yonker's avatar
      Mount system as read-only by default · eb32b1ff
      Ethan Yonker authored
      Mounting system as rw can prevent future OTA updates. The purpose
      of this patch set is to prevent TWRP from mounting sytem as rw on
      the first boot. Device maintainers should update their twrp.fstab
      files on these devices to include an additional line:
      /system_image emmc /dev/block/../system
      
      This line will allow TWRP to create a raw system image backup to
      ensure that the user can return to an original state for future
      OTA updates.
      
      Change-Id: I8929d85bc3a5b96cc564bc7f734b58d5612ec833
      eb32b1ff
  20. 18 May, 2015 1 commit
    • that's avatar
      bootloader: align with AOSP code · 4e0e3fcf
      that authored
      - Define a minimal Volume structure so that AOSP code for handling /misc
        works in TWRP without major changes.
      - Remove set/get_bootloader_message_*_name
      
      Change-Id: Ifcee59568141a184adebb94b8ef8beca072a7942
      4e0e3fcf
  21. 25 Mar, 2015 1 commit
  22. 02 Feb, 2015 1 commit
    • Ethan Yonker's avatar
      Disable stock recovery replacing TWRP during ORS · 9132d912
      Ethan Yonker authored
      -Create a separate function to disable stock recovery flashing
      -Add a call to that function to the reboot section of the ORS
       action so that an OTA update will not inadvertantly replace TWRP
      
      Change-Id: I43eae81e0e76971b6e8d34c38785dc73772242d2
      9132d912
  23. 22 Jan, 2015 2 commits
  24. 13 Jan, 2015 1 commit
    • Ethan Yonker's avatar
      Fix handling of custom themes after decrypt · cf50da57
      Ethan Yonker authored
      Loading a custom theme from the decrypt action was preventing the
      runPage function from exiting. This moves the loading of a custom
      theme out of the action.
      
      Change-Id: I86904b63a67a25ded56e3e1e569fe906264dc055
      cf50da57
  25. 04 Jan, 2015 1 commit
    • that's avatar
      fix adb sideload · cc8ddca9
      that authored
      - "Cancel" button handling requires another thread
      - simplify handling of child pid
      - merge duplicated code for reinjecting TWRP after installation
      - fix error that showed on host PC after sideload finished
      - fix problem where adbd sometimes does not stop correctly
      
      Change-Id: I536877f024b606756c6a3289c6ddfdba423a60d6
      cc8ddca9
  26. 02 Jan, 2015 1 commit
    • Ethan Yonker's avatar
      Do not toggle USB ID during MTP startup if not needed · df7abac1
      Ethan Yonker authored
      In most cases MTP is enabled so it is better to start our init.rc
      with MTP enabled and try not to toggle USB IDs during TWRP boot so
      that we can keep adb running to make debugging easier.
      
      Change-Id: Idf122c5ad4deeef7e1ed775d495989c502ddfb19
      df7abac1
  27. 29 Dec, 2014 1 commit
    • Ethan Yonker's avatar
      Ingore SIGPIPE errors · f9f99bcb
      Ethan Yonker authored
      If MTP exits unexpectedly, sending messages to add or remove a
      storage device via Add_Remove_MTP_Storage was causing a crash.
      Ignoring SIGPIPE allows us to more gracefully handle the error
      instead of a total crash of TWRP.
      
      Change-Id: I0a3f770f8b0f4bdbe10aa0ba857209b22b8668f7
      f9f99bcb
  28. 18 Dec, 2014 1 commit
    • Ethan Yonker's avatar
      Update SuperSU to 2.40 · e3e8829e
      Ethan Yonker authored
      The SuperSU install process is getting rather complicated, so we
      will modify the install script slightly and use it to install
      all the things and stop trying to check to see if root permissions
      have been lost like we used to do.
      
      Change-Id: Ibdb64c909d2bd16e12bb35b4f31f572cc29add47
      e3e8829e
  29. 12 Dec, 2014 1 commit
    • Ethan Yonker's avatar
      Attempt to set the proper uid/gid/contexts on new files and dirs · 4b94cfd3
      Ethan Yonker authored
      Files and folders that we create during backups, copy log, or MTP
      operations often do not have the proper uid/gid/contexts assigned.
      We will attempt to read the proper contexts from the settings
      storage path and assign those same contexts to any files or dirs
      that we create.
      
      Change-Id: I769f9479854122b49b499de2175e6e2d026f8afd
      4b94cfd3
  30. 20 Nov, 2014 1 commit
  31. 20 Sep, 2014 1 commit
  32. 04 Sep, 2014 2 commits
  33. 03 Sep, 2014 1 commit