Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Core recovery files for the Team Win Recovery Project (T.W.R.P)
C C++ Makefile Shell Logos Python Other

twrpTar: fix segfault after encrypted backups

also use unsigned int for core_count instead of unsigned long long.
I'll change it back when 4-billion-core devices are common.

PS2
- cast return value via intptr_t (may be important for 64 bit platforms)
- output errors from TWFunc::Wait_For_Child to console

Change-Id: I04158daa0b64e44d68e179d626a83d81cf5d49f7
latest commit 2252d24c96
@that1 that1 authored
Failed to load latest commit information.
applypatch Merge in lollipop and attempt to fix merge conflicts
bmlutils Make TWRP compile for arm64
crypto crypto: remove unused libs and clean up makefile
digest use md5.c for computation of md5sums
dosfstools Fix fsck_msdos symlink
edify clean up some warnings when building recovery
etc Merge tag 'android-5.1.0_r1' of https://android.googlesource.com/plat…
exfat This patchset causes issues with backups.
fb2png FB2PNG: Add fb2png source to TWRP
flashutils Clean up make flash utility make files
fonts more font improvements and cleanup
fuse on stock android, pthread_cancel and phtread_setcancelstate doesn't e…
gui gui: add DST rules to time zones for USA and Europe
htcdumlock Whitespace and minor code cleanup
injecttwrp Whitespace and minor code cleanup
libblkid Stop building unneeded libs for libblkid
libcrecovery Make TWRP compile for arm64
libmincrypt Make the android-5.0 branch compile in 4.4 to 4.1
libtar libtar: fix handling of files bigger than 2 GiB
minadbd Update adb sideload feature
minui Add support for custom kernel headers
minuitwrp Ingore touch events for 0,0
minzip Revert "Force sync files written by minzip."
mmcutils Fix compiling for x86 targets
mtdutils Clean up make flash utility make files
mtp Fix erroneous infinite loop in MTP inotify_t
openaes Fix openaes
orscmd Add command line capabilities
pigz Fix generating symlinks for older trees
prebuilt Make TWRP compile for x86-64 CPU target
res-hdpi/images Remove new images from AOSP
res-mdpi/images Remove new images from AOSP
res-xhdpi/images Remove new images from AOSP
res-xxhdpi/images Remove new images from AOSP
res-xxxhdpi/images Remove new images from AOSP
res Remove unneeded images
testdata Add support for ECDSA signatures
tests Make the android-5.0 branch compile in 4.4 to 4.1
toolbox toolbox: Include setenforce into tools.h
tools Recovery 64-bit compile issues
twrpTarMain Fix twrpTar building
uncrypt Merge tag 'android-5.1.0_r1' of https://android.googlesource.com/plat…
updater updater: only include tune2fs support when libtune2fs is available
.gitignore gitignore: ignore tags file
Android.mk Make TWRP compile for x86-64 CPU target
CleanSpec.mk recovery: minui: add adf backend
NOTICE Automated import from //branches/donutburger/...@140818,140818
README.md Add libtar to TWRP instead of using busybox tar
adb_install.cpp fix adb sideload
adb_install.h fix adb sideload
asn1_decoder.cpp Add support for ECDSA signatures
asn1_decoder.h Add support for ECDSA signatures
bootloader.cpp bootloader: fix crash with empty lines in /cache/recovery/command
bootloader.h Merge in lollipop and attempt to fix merge conflicts
common.h Update to latest AOSP master
data.cpp gui: simplify blanktimer
data.hpp Add locking to DataManager, remove unused C parts
default_device.cpp Make /cache/recovery/last_log available in recovery
device.h Make /cache/recovery/last_log available in recovery
find_file.cpp Fix missing closedir() in Find_File::Find_Internal()
find_file.hpp Add find file class to search for files
fixPermissions.cpp fixPermissions: simplify code, fix bugs
fixPermissions.hpp fixPermissions: simplify code, fix bugs
fuse.h Make the android-5.0 branch compile in 4.4 to 4.1
fuse_sdcard_provider.c do sdcard sideloading through the fuse filesystem
fuse_sdcard_provider.h do sdcard sideloading through the fuse filesystem
fuse_sideload.c Make the android-5.0 branch compile in 4.4 to 4.1
fuse_sideload.h refactor fuse sideloading code
infomanager.cpp Attempt to set the proper uid/gid/contexts on new files and dirs
infomanager.hpp Track backup and restore progress
install.cpp Address a few compiler warnings
install.h Merge in lollipop and attempt to fix merge conflicts
interlace-frames.py update tools for making recovery images
legacy_properties.h Add basic error checking to legacy property init
legacy_property_service.c Make TWRP compile for arm64
legacy_property_service.h Add basic error checking to legacy property init
mounts.c TWRP-ify AOSP code
mounts.h TWRP-ify AOSP code
openrecoveryscript.cpp Fix handling of mapped zip files for OTA updates
openrecoveryscript.hpp Add command line capabilities
partition.cpp Fix TWRP not mounting /data/media type storage if built with toolbox …
partitionmanager.cpp Address a few compiler warnings
partitions.hpp Theme: Add ability to disable size checking before backup
recovery.cpp Add basic navigation controls to log viewer.
recovery_ui.h TWRP-ify AOSP code
roots.cpp Merge in lollipop and attempt to fix merge conflicts
roots.h Erase PST partition if its marked to be erased.
screen_ui.cpp Merge in lollipop and attempt to fix merge conflicts
screen_ui.h restore holo UI in recovery
set_metadata.c Hide some non critical error messages
set_metadata.h Attempt to set the proper uid/gid/contexts on new files and dirs
tarWrite.c Update licenses to all match
tarWrite.h Add write buffer for tar writes
tw_atomic.cpp Add cancel backup capability.
tw_atomic.hpp Add cancel backup capability.
twcommon.h Color in the console
twinstall.cpp Use one mizip for all
twinstall.h Move all AOSP code out of recovery binary
twrp-functions.cpp twrpTar: fix segfault after encrypted backups
twrp-functions.hpp Disable stock recovery replacing TWRP during ORS
twrp.cpp Fix reboot for some devices
twrpDU.cpp Attempt to automatically identify data/media devices
twrpDU.hpp Simplify twrpTar skip dir checks, DU code cleanup
twrpDigest.cpp Address a few compiler warnings
twrpDigest.hpp Support .md5sum extension for package verification
twrpTar.cpp twrpTar: fix segfault after encrypted backups
twrpTar.h Update licenses to all match
twrpTar.hpp Add cancel backup capability.
ui.cpp Merge in lollipop and attempt to fix merge conflicts
ui.h disable async reboot during package installation
variables.h 2.8.6.0
verifier.cpp Fix up libaosprecovery
verifier.h Fix up libaosprecovery
verifier_test.cpp Merge in lollipop and attempt to fix merge conflicts
verifier_test.sh Add support for ECDSA signatures

README.md

Team Win Recovery Project (TWRP)

The goal of this branch is to rebase TWRP onto AOSP while maintaining as much of the original AOSP code as possible. This goal should allow us to apply updates to the AOSP code going forward with little to no extra work. With this goal in mind, we will carefully consider any changes needed to the AOSP code before allowing them. In most cases, instead of changing the AOSP code, we'll create our own functions instead. The only changes that should be made to AOSP code should be those affecting startup of the recovery and some of the make files.

If there are changes that need to be merged from AOSP, we will pull the change directly from AOSP instead of creating a new patch in order to prevent merge conflicts with AOSP.

This branch is under final testing and will be used shortly for public builds, but has not officially been released.

You can find a compiling guide here.

More information about the project.

If you have code changes to submit those should be pushed to our gerrit instance. A guide can be found here.

Something went wrong with that request. Please try again.