1. 09 Oct, 2015 1 commit
    • Ethan Yonker's avatar
      Merge up to AOSP marshmallow-release · c798c9cd
      Ethan Yonker authored
      In order to maintain compatibility with older trees, we now have
      minadbd.old and minui.old. I had to use a TARGET_GLOBAL_CFLAG to
      handle ifdef issues in minui/minui.d because healthd includes
      minui/minui.h and there was no other alternative to make minui.h
      compatible with older trees without having to modify healthd rules
      which is outside of TWRP.
      
      Note that the new minui does not currently have support for qcom
      overlay graphics. Support for this graphics mode will likely be
      added in a later patch set. If you are building in a 6.0 tree and
      have a device that needs qcom overlay graphics, be warned, as off
      mode charging may not work properly. A dead battery in this case
      could potentially brick your device if it is unable to charge as
      healthd handles charging duties.
      
      Update rules for building toolbox and add rules for making toybox
      
      Use permissive.sh in init.rc which will follow symlinks so we do
      not have to worry about what binary is supplying the setenforce
      functionali...
      c798c9cd
  2. 26 Aug, 2015 2 commits
    • Ethan Yonker's avatar
      Add TW_IGNORE_ABS_MT_TRACKING_ID · d6821a11
      Ethan Yonker authored
      Fixes touch on Oppo R7 Plus
      
      Oppo R7 Plus, when recovery is flashed and booted from the actual
      recovery partition, the digitizer sends some extra touch data for
      up to 10 different touch slots even if no actual touch is present
      for those slots (ABS_MT_SLOT). This patch allows TWRP to handle
      touch data properly for this device and maybe others.
      
      Change-Id: I8f9171b605566788b674b3d4d96bd9f2f65736c2
      d6821a11
    • 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
  3. 09 Aug, 2015 2 commits
  4. 05 Aug, 2015 1 commit
  5. 04 Aug, 2015 1 commit
    • Tao Bao's avatar
      udpater: Call fsync() after rename(). · be19dce8
      Tao Bao authored
      We need to ensure the renamed filename reaches the underlying storage.
      
      Bug: 22840552
      Change-Id: I824b6e9d8a9c5966035be7b42a73678d07376342
      (cherry picked from commit dc3922622a94af4f6412fd68e8f075f839ab2348)
      be19dce8
  6. 27 Jul, 2015 1 commit
  7. 22 Jul, 2015 1 commit
  8. 15 Jul, 2015 1 commit
  9. 14 Jul, 2015 6 commits
    • Ethan Yonker's avatar
      Add ntfs-3g support · b81d9051
      Ethan Yonker authored
      Add support for mounting ntfs via ntfs-3g and support for wiping
      and repairing ntfs partitions.
      
      Change-Id: I82dc4626f459bb93b86eb9ebba64ad3a6560781b
      b81d9051
    • 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
    • Matt Mower's avatar
      Allow devices to override USB init · ec009e8c
      Matt Mower authored
      This enables devices to provide their own USB configuration. The
      contents of init.recovery.usb.rc can most simply be modified and
      included in a device's init.recovery.${ro.hardware}.rc.
      
      Use option:
      TW_EXCLUDE_DEFAULT_USB_INIT := true
      
      Rationale: Some devices handle USB pid switching in the kernel. In this
      case, USB init provides switching functions which differ from the
      standard on property:sys.usb.config=xyz. Other devices should not see
      USB attempt mtp,adb mode when TW_EXCLUDE_MTP is set.
      
      Cherry-picked from android-5.0
      
      Change-Id: Ief0fcaf46a1782102166fc1b733a34b1a1ba0802
      ec009e8c
    • Captain Throwback's avatar
      Update path for libcryptfs_hw to proper variable · 7fe1b398
      Captain Throwback authored
      Change-Id: Ie91d161f4e439a870534639f44a03df22f4fe39a
      7fe1b398
    • that's avatar
      gui: allow listbox to be used as menu and as read-only list · c01391c1
      that authored
      Also enable string insertion for list items.
      
      Example how to make a menu item:
      <listitem name="Lights on!">
      	<action>
      		<action function="setbrightness">255</action>
      	</action>
      </listitem>
      
      If no <data> element and no actions on any items exist, the list is
      read only and no item selection is possible.
      
      Change-Id: Ib2668a982df2514484d44faa0396dd17550f39f3
      c01391c1
    • that's avatar
      gui: keyboard: support longpress label offset, code cleanup · f6b2066f
      that authored
      To position the longpress label:
      <longpress font="..." textcolor="..." x="5" y="0"/>
      x and y is the distance from the upper right corner.
      
      - extract method GUIKeyboard::DrawKey
      - clean up handling of currently pressed key
      - integrate key highlighting into main key drawing loops
      
      Change-Id: I80ccf2975d30cffa2a48627a74ab3693c84e4fa4
      f6b2066f
  10. 13 Jul, 2015 2 commits
  11. 07 Jul, 2015 4 commits
  12. 06 Jul, 2015 2 commits
  13. 02 Jul, 2015 1 commit
  14. 01 Jul, 2015 7 commits
  15. 29 Jun, 2015 1 commit
    • Kra1o5's avatar
      Add flag to disable double buffering · c9556ccb
      Kra1o5 authored
      Some devices don't support double buffering, so add
      the flag TW_DISABLE_DOUBLE_BUFFERING to disable it
      
      Change-Id: Ia9c233fa229ae9c221a6c6f219b216d1753052f4
      c9556ccb
  16. 27 Jun, 2015 1 commit
  17. 26 Jun, 2015 3 commits
    • caozhiyuan's avatar
      Use f_bavail to calculate free space · 9154748c
      caozhiyuan authored
      Failures are seen on devices with
      Linux 3.10. And they are mainly due to this change:
      https://lwn.net/Articles/546473/
      The blocks reserved in this change is not the same thing as what we
      think are reserved for common usage of root user. And this part is
      included in free blocks but not in available blocks.
      
      Bug: 22118089
      Change-Id: I81c9531703298019a4fc11839f28d2cc8b9df34e
      (cherry picked from commit 3b4977638f48e59d23d7ea2bb6dde78552c257fb)
      9154748c
    • Tao Bao's avatar
      More accurate checking for overlapped ranges. · c3dddce2
      Tao Bao authored
      A RangeSet has half-closed half-open bounds. For example, "3,5" contains
      blocks 3 and 4. So "3,5" and "5,7" are actually not overlapped.
      
      Bug: 22098085
      Change-Id: I362d259f8b5d62478858ad0422b635bc5068698d
      (cherry picked from commit c0f56ad76680df555689d4a2397487ef8c16b1a6)
      c3dddce2
    • caozhiyuan's avatar
      Use f_bavail to calculate free space · cb9450e1
      caozhiyuan authored
      Failures are seen on devices with
      Linux 3.10. And they are mainly due to this change:
      https://lwn.net/Articles/546473/
      The blocks reserved in this change is not the same thing as what we
      think are reserved for common usage of root user. And this part is
      included in free blocks but not in available blocks.
      
      Bug: 22118089
      Change-Id: I81c9531703298019a4fc11839f28d2cc8b9df34e
      (cherry picked from commit 3b4977638f48e59d23d7ea2bb6dde78552c257fb)
      cb9450e1
  18. 23 Jun, 2015 2 commits
  19. 20 Jun, 2015 1 commit
    • Ethan Yonker's avatar
      2.8.7.0 · f2786d37
      Ethan Yonker authored
      Change-Id: I712e2d51e412ab5c6167f7c7b29ebf987cd6963c
      f2786d37