summaryrefslogtreecommitdiffstats
path: root/twrpTar.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-02-03Refactor twrpTar to use TarListDees Troy1-295/+71
Eliminate the use of tarDirs and Generate_MultipleArcives in favor of Generate_TarList so that we have one method for backup creation instead of three. Change-Id: I267937b6e40b32d43fbac8b4cca82f7468d4f94c
2013-12-20declare dir for non data/media devicesDees Troy1-0/+2
Change-Id: I60e2e2a880c3bd5fff3f485f7c8e4ac9ab6fd3bd
2013-12-19Create a TWRP Disk Usage Class to retain state about a directory and whether we should skip it in other classes like twrpTar.bigbiff bigbiff1-9/+24
Moved Get_Folder_Size to this new class. Change-Id: If0a0220f900eb109581f2eeaf7b76e3f7d6886f1
2013-10-24Ensure root folders get added in split archivesDees Troy1-0/+6
Make sure that we add the root folder itself to get the perms and SELinux contexts before splitting to a second archive. Change-Id: Id93a9f9b4767b61bba38eb0cf7306c81a8540a3c
2013-10-23fix getting and setting contexts in selinuxbigbiff bigbiff1-2/+7
recreate lost+found with selinux contexts Change-Id: I19e8696d47319dfb641520956c8a27c2a796a0c3
2013-10-17fix getting and setting contexts in selinuxbigbiff bigbiff1-1/+6
recreate lost+found with selinux contexts Change-Id: I19e8696d47319dfb641520956c8a27c2a796a0c3
2013-10-17Ensure root folders get added in split archivesDees Troy1-1/+7
Make sure that we add the root folder itself to get the perms and SELinux contexts before splitting to a second archive. Change-Id: Id93a9f9b4767b61bba38eb0cf7306c81a8540a3c
2013-09-05libtar: store SELinux file context in tar archivesVojtech Bocek1-10/+10
* Using RedHat's "RHT.security.selinux=" tag in extended tar header (type 'x') Signed-off-by: Vojtech Bocek <vbocek@gmail.com> Change-Id: I102e492e4fa5b8a08fae4d34eb36386862509b4d
2013-08-28skip checking size on linksbigbiff bigbiff1-40/+60
skip google music cache Change-Id: I75d6fd0e17140d12cb2c6d335e8ff73a6f871aa2
2013-08-28ignore lost+found in all the placesbigbiff bigbiff1-6/+6
2013-08-24Unify indentation and little clean-up in TWRP filesVojtech Bocek1-1/+1
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-08-14Fix problem with not waiting for pigz to exitDees_Troy1-1/+1
In some cases compressed backups would not wait for pigz to finish leading to backup files that were 0 bytes or MD5 mismatches.
2013-07-24Fix permissions on backup filesDees_Troy1-14/+13
2013-07-01Fix backup of datadataDees_Troy1-10/+15
Change-Id: Ib0098542599283787592ba08caa070dc818d6111
2013-06-22Support encrypted backup filesDees_Troy1-221/+936
Also includes features merged from: Update twrpTar by kokotas Revised function entryExists(). Added function to get archive's uncompressed size. Added option to exclude item(s) from the archive. Revised forks() http://review.teamw.in/#/c/590/ Change-Id: I01fa2c81643161984eff2625247af75990684bd9
2013-04-04Move all AOSP code out of recovery binaryDees_Troy1-51/+51
Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
2013-03-18Add search function to libtarn0d31-14/+42
Function entryExists() can be called in order to check if an entry exists inside an archive. Change-Id: Id3d13d20dfb74a1779dbd8ba6f0ab08c3ca46319
2013-03-16Fix backup of initial directory with split archivesDees_Troy1-22/+23
Change-Id: Icbb3be817b8a8fe693f6ee015152f780c40b3f7a
2013-03-02Fix capturing exit status to properly display libtar resultsDees_Troy1-2/+2
Error conditions were always showing successful in the TWRP GUI making it much more difficult to determine if a backup or restore was actually successful.
2013-02-27libtar - Fix extraction of hardlinks to use the prefixDees_Troy1-2/+2
Change-Id: I116982ceed722364406b99fb08bc6943afa0390a
2013-02-27fix restore on mknodbigbiff bigbiff1-2/+6
Change-Id: I9fb8b927f81a8cded651e42026beb3d5c252d1e8
2013-02-22using __popen segfaults, switch back to popenbigbiff bigbiff1-3/+3
2013-02-18change libtar to fork instead of pthreadbigbiff bigbiff1-28/+117
Conflicts: twrpTar.cpp
2013-02-13This adds a 60 second screen timeout for TWRP. Might consider making this configurable in the future.bigbiff bigbiff1-0/+4
Will also set overlay to lockscreen so we don't have inadvetent screen selections. Touching the screen will bring the display back up. add back check script for poweroff move diff time function to twrp-functions.cpp make sure we chmod after copy_file add read_file and write_file functions to twrp-functions.cpp make single thread try to force update screen add forceRender drop caches after tar processing Change-Id: I3c5c509dd39dbb05451bbfe5d8b56d53c90d8d1b
2013-02-12Change popen in twrpTar to __popenDees_Troy1-6/+7
Change-Id: I921b0647b1f63dd348b059eb630ebe9bf5ec570d
2013-02-07Add write buffer for tar writesDees_Troy1-67/+88
update fuse to 2.9.2 catch return from unlink so that we don't print error messages when things work Change-Id: I1115039a0fa5d9d73f78ef1abd79755d7ffd9d96
2013-01-24change tar create to pthreadbigbiff bigbiff1-65/+121
Change-Id: I5a33d207ec6683de20da37e6f4f174c67785fc52
2013-01-09Add libtar to TWRP instead of using busybox tarbigbiff bigbiff1-0/+409
Add proper mkdosfs tool Add fuse to TWRP Add experimental exfat-fuse to TWRP Convert all system() functions to use new Exec_Cmd function