Commits on Aug 26, 2015

    Dees-Troy committed Aug 26, 2015
    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
  2. Fix up some TW_OEM_BUILD things

    Dees-Troy committed Aug 26, 2015
    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
Commits on Aug 9, 2015
  1. Wipe crypto key when formatting data

    Dees-Troy committed Aug 9, 2015
    Change-Id: I032fabb383b4063e3b31b6044ce39966b8c617d0
  2. ORS: Report success if AOSP script succeeds

    mdmower authored and Dees-Troy committed Aug 8, 2015
    When AOSP recovery commands are processed, the GUI reports a failure
    just before reboot even when all commands succeeded. Set op_status
    before reboot to indicate success.
    Change-Id: I09e9357b04cd81f418264bf00a75311f48357414
Commits on Jul 27, 2015
  1. gui: support new theme directory structure

    that1 committed Jul 27, 2015
    Change-Id: I8622da5ae321ba69a55b38e2f0b878b7ec149d02
Commits on Jul 22, 2015
  1. Really fix background color on 480x800 theme

    Dees-Troy committed Jul 22, 2015
    Change-Id: I70324ae3e4fffe88bc2b5a02becb7d1f4f0ceab0
Commits on Jul 16, 2015

    maxwen authored and humberos committed Jul 13, 2015
    we want to use it in charger
    Change-Id: I3e0288b074bd7203214d218aaee69cb4798e9531
Commits on Jul 14, 2015
  1. Add ntfs-3g support

    Dees-Troy committed Jul 9, 2015
    Add support for mounting ntfs via ntfs-3g and support for wiping
    and repairing ntfs partitions.
    Change-Id: I82dc4626f459bb93b86eb9ebba64ad3a6560781b
  2. Make system read only show no matter what on first TWRP boot

    Dees-Troy committed Jun 29, 2015
    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
    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
    Change-Id: I447767b64617f855156a19a5dc15c4ece6dff7b8
  3. Allow devices to override USB init

    mdmower authored and Dees-Troy committed Jan 30, 2015
    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:
    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
  4. Update path for libcryptfs_hw to proper variable

    CaptainThrowback authored and Dees-Troy committed Jun 29, 2015
    Change-Id: Ie91d161f4e439a870534639f44a03df22f4fe39a
  5. gui: allow listbox to be used as menu and as read-only list

    that1 authored and Dees-Troy committed Jul 8, 2015
    Also enable string insertion for list items.
    Example how to make a menu item:
    <listitem name="Lights on!">
    		<action function="setbrightness">255</action>
    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
  6. gui: keyboard: support longpress label offset, code cleanup

    that1 authored and Dees-Troy committed Jun 25, 2015
    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
Commits on Jul 13, 2015
  1. Fix minor background bug in 480x800 xml

    Dees-Troy committed Jul 13, 2015
    Change-Id: Ib67a356f8d5e6bb0f982c081fc88b6462c7fbd74
  2. gui: allow specifying object type in element name

    that1 authored and Dees-Troy committed Jun 27, 2015
    e.g. '<button ...>' instead of '<object type="button" ...>'
    Also get rid of default parameters to make things more explicit.
    Change-Id: Ie4d1231b725aeb6cbf0041622c9780c86cf8e1c1
Commits on Jun 29, 2015
  1. Add flag to disable double buffering

    Kra1o5 committed Jun 24, 2015
    Some devices don't support double buffering, so add
    the flag TW_DISABLE_DOUBLE_BUFFERING to disable it
    Change-Id: Ia9c233fa229ae9c221a6c6f219b216d1753052f4
Commits on Jun 20, 2015

    Dees-Troy committed Jun 20, 2015
    Change-Id: I712e2d51e412ab5c6167f7c7b29ebf987cd6963c
  2. Cleanup device_id retrieval

    mdmower authored and Dees-Troy committed Feb 23, 2015
      - provide the header that defines property functions/constants
      - actually look for hardware_id before attempting to append it
    * Perform string length checks rigorously.
    * Only perform newline removal if string is used before sanitization.
    * Copy changes to htcdumlock, but rely on cmdline only.
    ps3: fix merge conflict in data.cpp includes
    Change-Id: I720d3bc8416758f5f83782e8bc298b32eda1a573
  3. [WIP] gui: software drawn keyboard (code only)

    that1 authored and Dees-Troy committed May 23, 2015
    Change-Id: I9f05c85f8d43ab012228a78b79220a27876a299d
Commits on Jun 17, 2015
  1. Fix mass storage in recovery

    ramsudharsan authored and Dees-Troy committed Apr 10, 2015
    The proper order is mass_storage,adb.
    Some systems cannot recognize the mass storage otherwise.
    Change-Id: I2a79ac6dfd7247032f774125c75586e45fea7633
    Signed-off-by: ramsudharsan <>
  2. fix settingsstorage mark

    xuefer authored and Dees-Troy committed Apr 13, 2015
    Change-Id: I60755ca66f048d1484c3d55dc60099679ba987f6
  3. Allow ORS set command to work with spaces in the value

    Dees-Troy committed Jun 17, 2015
    Change-Id: I1a61ba7ad5479f8aa31a0c9c18bf228cf32104e9
  4. Make sure that adbd restarts after sideload

    Dees-Troy committed Apr 28, 2015
    Change-Id: I7d82b95cd8749c6f8569739162708705faa6f1f7
  5. framebuffer: s6 edge takes a little lomger to initialize fb0

    jenkins authored and Dees-Troy committed May 8, 2015
    Change-Id: I48a5b25a227afb8637fcce7e4a1e2fc6bcc56b03
  6. add magic property.* value for accessing system property variables

    xuefer authored and Dees-Troy committed Mar 26, 2015
    Change-Id: Ic916da6e7ecbf79396febfe1e5f0b0ae8570083f
  7. minuitwrp: fix crash when taking a screenshot.

    xiaolu authored and Dees-Troy committed May 23, 2015
    when "gr_mem_surface.format = GGL_PIXEL_FORMAT_RGBA_8888", "gl->recti" will be crash.
    this is a simple fix.
    Change-Id: I39da7298286f34cdf7eae98f6b082c36695b222e
  8. partition: recreate tw_internal_path(/data/media/0), after wipe media…

    xiaolu authored and Dees-Troy committed Jun 4, 2015
    … from data or format /data.
    Change-Id: I3671d7a5759260a4e74952168483a6816eb28f5d
  9. Fix ORS scripts displaying an error after completing

    Dees-Troy committed Jun 9, 2015
    Change-Id: I1329705fca870b4e3017607ad7c7875aa00d664b
Commits on Jun 9, 2015
  1. Fix system read only behavior during boot

    Dees-Troy committed Jun 4, 2015
    Change-Id: I90dbdd06465e2ddaaade86b930beff91991432eb
Commits on Jun 4, 2015
  1. avoid possible dead loop for invalid utf8

    xuefer authored and Dees-Troy committed Apr 16, 2015
    Change-Id: Ida48b7ff119030312836aa109072ac4de7c5b9d6
Commits on Jun 1, 2015
  1. gui: set tw_file to the currently flashed file name without path

    that1 committed Jun 1, 2015
    To allow themes to show more of the file name on narrow displays.
    Change-Id: I4962eed5e4a01f73a3cde126f2ba56428209fccc
  2. Fix double free crash during encrypted backups

    Dees-Troy committed Jun 1, 2015
    Calling flush_libtar_buffer would inadvertantly set buffer_status
    when no buffer is currently allocated. Later when we called
    free_libtar_buffer, this would attempt to free the write_buffer
    and cause a crash. This patch checks the value of buffer_status in
    flush_libtar_buffer to prevent us from freeing the buffer when it
    is not necessary.
    Change-Id: Ic5b462fe5881be6e9c6fcc355b369bc90477f737
  3. gui: move retainaspect handling to the resource ctors

    that1 authored and Dees-Troy committed May 6, 2015
    LoadResources should only decide on the resource type,
    everything else is handled by the resources themselves.
    Change-Id: I30f68293960c23560979f650efc4393992cf5824
  4. Don't try to read temparature file if TW_NO_CPU_TEMP is set to true.

    Agontuk authored and Dees-Troy committed Apr 22, 2015
    Otherwise, recovery log gets filled up with
    "I:Cannot find file /sys/class/thermal/thermal_zone0/temp"
    This also fixes build warnings due to duplicate definition of TW_NO_CPU_TEMP.
    Change-Id: Ib7fdcd103d6684249c38c8b14ec85f2faba158f6
Commits on May 30, 2015
  1. Fix unable to uncheck the mount read only check box

    Dees-Troy committed May 30, 2015
    Change-Id: I1bbc25df6f35f79549f1eb06feb4db9ec0475aa5