Ethan Yonker
c62b34c3ba
Remove unneeded logging
...
Change-Id: I5c7d104689ed2b578b463a6be55b3688dcc4c01a
2014-02-25 11:19:56 -06:00
Ethan Yonker
374cd713d4
Merge "Move DataManager functions out of twrpTar.cpp" into android-4.4
2014-02-12 15:56:02 +01:00
Ethan Yonker
87af56369b
Move DataManager functions out of twrpTar.cpp
...
Change-Id: I943318afe787ff4ede724fa0bc77ebc6a3ba0c8b
2014-02-10 11:56:35 -06:00
Ethan Yonker
f27497f0cc
Fix ext4 wiping when no SELinux contexts are defined
...
Change-Id: I900f42892d47f54b573cc1dbfb551ed2a8f9e8b9
2014-02-09 11:48:33 -06:00
Dees Troy
175cb7b25d
Merge "Additional mount function call without mount options" into android-4.4
2014-02-07 19:49:11 +01:00
Dees Troy
216e042be8
Additional mount function call without mount options
...
Example: f2fs on Moto G needs fsflags="inline_xattr" in the stock
ROM but the Google Edition uses ext4 which fails to mount with that
option.
Change-Id: I01bce214e7f15e43e66ac35729fd3521609ffad3
2014-02-07 03:46:46 +00:00
bigbiff bigbiff
6b600f9644
Restore contexts when doing mkdierhier in libtar
...
Do a restore of loaded file contexts to /data/media directory. This will help denials to be prevented when internal storage is wiped.
Change-Id: Ie49bbfa48d2f3ee4f08376d9c1877b92c051017c
2014-02-06 19:56:25 -05:00
Ethan Yonker
a21b052589
Merge "Improve android secure handling" into android-4.4
2014-02-06 20:05:30 +01:00
Ethan Yonker
a1aad1bd8c
Fix error message on split backups
...
Change-Id: I9effd57c2b4d28c3bd9ca1045a0bb0ac8c958245
2014-02-04 21:58:14 -06:00
Ethan Yonker
d4d107388c
Improve android secure handling
...
Change-Id: I9e1c7f4a8353b7be51e1a54bf5d506c9dce70da2
2014-02-03 15:27:52 -06:00
Dees Troy
e0a433a94d
Refactor twrpTar to use TarList
...
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
2014-02-03 19:13:26 +01:00
bigbiff bigbiff
c7360dd263
Clear the relative directory before passing on to twrpTar with the static du object. Otherwise we will not backup /system/media etc
...
Change-Id: Ib62af6ad8596aa18bf48cb750e2ecf442dadc627
2014-02-03 19:00:58 +01:00
Ethan Yonker
06c3f93d69
Add option to set flag for storage=0
...
Change-Id: I46b94d55fc649a2abf27569ccf99aabb2822d663
2014-02-03 16:09:33 +01:00
Dees Troy
c4bc30ec43
ifdef some file system options that are not available in older trees
...
Change-Id: I11a7e441f7fe4e556a5349822150493de90095f1
2014-02-03 15:04:19 +00:00
bigbiff bigbiff
34684ff313
Create a TWRP Disk Usage Class to retain state about a directory and whether we should skip it in other classes like twrpTar.
...
Moved Get_Folder_Size to this new class.
Change-Id: If0a0220f900eb109581f2eeaf7b76e3f7d6886f1
2013-12-19 18:02:44 +00:00
Hashcode
62bd9e04c7
add support for fsflags= option in twrp.fstab file
...
example userdata line (as needed by MotoX):
/data f2fs /dev/block/platform/msm_sdcc.1/by-name/userdata flags=fsflags="inline_xattr"
Code for parsing flags/options originally based on AOSP fs_mgr sources.
Change-Id: I5fb2b5d5cdd08137e6bf71f0085a3f8aebd889a8
2013-12-19 17:04:02 +00:00
Dees Troy
3be70a897e
Update licenses to all match
2013-10-22 14:25:12 +00:00
Dees Troy
d932ce1b99
Fix spelling error
2013-10-18 17:12:59 +00:00
bigbiff bigbiff
c49d706903
fix getting and setting contexts in selinux
...
recreate lost+found with selinux contexts
Change-Id: I19e8696d47319dfb641520956c8a27c2a796a0c3
2013-10-17 16:49:49 +00:00
Vojtech Bocek
05534209f1
Add TWFunc::Exec_Cmd() with no 'result' agrument
...
Signed-off-by: Vojtech Bocek <vbocek@gmail.com >
Change-Id: Id8acff1ac9b3c7e4b562c80562a8ff42a1d132b9
2013-09-12 15:36:40 +00:00
Dees_Troy
5295d581a5
Add more args to make_ext4fs command
2013-09-06 15:51:08 +00:00
Vojtech Bocek
1dc3098a5c
Initialize TWPartition::User_Rm_Rf to false in constructor
...
Signed-off-by: Vojtech Bocek <vbocek@gmail.com >
2013-08-30 21:49:30 +02:00
Hashcode
dabfd49bd4
implement "usermrf" fstab flag to force rm -rf * deletion on specific partitions
...
Change-Id: I58f4a8cedf31e6b6efd88f96a43ed525603ae311
2013-08-30 10:28:15 -07:00
Dees_Troy
b3265ab358
Better compatibility by fixing up ext4 & selinux flags
2013-08-30 02:59:14 +00:00
Dees_Troy
e5017045b5
Initial f2fs support
...
Need to add this to your source tree:
https://github.com/razrqcom-dev-team/android_external_f2fs-tools
Change-Id: I3ee9ebbb617259655518f8ea356ce7b8c246cd4d
2013-08-29 16:58:38 +00:00
bigbiff bigbiff
86e77bcbb2
skip checking size on links
...
skip google music cache
Change-Id: I75d6fd0e17140d12cb2c6d335e8ff73a6f871aa2
2013-08-28 16:10:36 +00:00
Vojtech Bocek
fafb0c541b
Unify indentation and little clean-up in TWRP files
...
Signed-off-by: Vojtech Bocek <vbocek@gmail.com >
2013-08-24 07:56:48 -05:00
Dees_Troy
a95f55c3ef
Add SELinux support
...
Change-Id: I11e1a3d018d921d96ba08915925b14bf633be6ed
2013-08-24 07:42:30 -05:00
Dees_Troy
066eb30abf
Fix AOSP decrypt when TouchWiz code is present
2013-08-23 17:22:37 +00:00
Vojtech Bocek
4d4b3361f3
Properly free blkid_probe in TWPartition::Check_FS_Type()
...
Signed-off-by: Vojtech Bocek <vbocek@gmail.com >
2013-07-01 15:50:15 -05:00
Dees_Troy
76543db6e6
Fix MTD Mounting
...
Pulled part of change from kokotas in this patch set:
http://review.teamw.in/#/c/586/
Change-Id: If1c5b1563df16f9c561c94f61010f6a99f36efa0
2013-07-01 15:36:02 -05:00
Dees_Troy
74fb2e94d5
Fix some issues with wipe partition list
...
Change-Id: Ie7d5878faf86b8fa824b72211be7fd3596b471d7
2013-07-01 20:20:58 +00:00
Dees_Troy
83bd483f3d
Support encrypted backup files
...
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-06-22 16:16:55 -05:00
Dees_Troy
9e0b71c6ad
Improve backup list results
2013-04-08 13:35:37 +00:00
Dees_Troy
70737fabde
Improve automated handlidling of partitions
2013-04-08 13:19:20 +00:00
Dees_Troy
2673cec07a
Move all AOSP code out of recovery binary
...
Improves license compatibility between GPL and Apache
Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
2013-04-04 18:57:34 +00:00
Dees_Troy
a13d74fc95
Add partition list GUI element
...
Add partition list GUI element and update backup, restore, mount,
storage selection, and wipe sections of GUI and partition manager
code to reflect the new GUI element. Update ORS engine to handle
new backup and restore setup.
Fix a bug with decrypt.
Add 1080x1920 layout.
Change-Id: Iaa2f44cb707167e66f935452f076ba00e68a2aa4
2013-03-30 08:56:39 -05:00
bigbiff bigbiff
65a4c73b1e
trying to fix md5
...
Change-Id: I4ec037f76aa965bc818afe924942adbe9a080b36
2013-03-17 14:40:20 -04:00
bigbiff bigbiff
cdcfee48b9
use md5.c for computation of md5sums
...
create a framework for computing digests and reading digests in TWRP
add space for backwards compatibility with bb md5sum
Change-Id: Ia18e3f430eed5eba22e5052d39b9b8d88ecd4536
2013-03-07 08:07:34 -05:00
bigbiff bigbiff
e60683a0d5
use libblkid to get filesystem type
...
we can now use libblkid to detect exfat
2013-02-25 09:06:46 -05:00
igoriok
87e3d93edc
Add MTK6575/6577 EMMC partitions backup support
...
taken from 140ff0cde8
"sorocean.gor@gmail.com "
Change-Id: I1a97160c73c7a0bab0535e938d6b35dc09585037
2013-02-19 17:47:43 +00:00
bigbiff bigbiff
e6594ab9a3
change libtar to fork instead of pthread
...
Conflicts:
twrpTar.cpp
2013-02-17 20:18:31 -05:00
Dees_Troy
e34c133ec6
Add write buffer for tar writes
...
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-02-07 08:21:17 -05:00
Dees_Troy
3f5c4e8dfe
Fix fail over to vfat from exfat
...
Fix issues with MD5 checking using chdir and leaving the working
dir in a subfolder that prevented unmounting sometimes.
Change-Id: I01a563d722f474297ed3f7a30064c3a61748ade3
2013-02-01 16:56:34 +00:00
Dees_Troy
b05ddeedd3
exFAT improvements, fixes
...
Move Exec_Cmd to libcrecovery __popen
Provide opt out build flag for exFAT
Default fstype to exfat on external storage if exfat support is
present and fstype is vfat or auto
Fix invalid unmount errors
Improve handling of unencrypted sdcards on Samsung devices
2013-01-28 20:45:11 +00:00
Dees_Troy
2c4c26f43d
Fix subpartitionof flag
2013-01-28 15:26:43 +00:00
bigbiff bigbiff
3bf2b0e630
change tar create to pthread
...
Change-Id: I5a33d207ec6683de20da37e6f4f174c67785fc52
2013-01-24 19:44:11 +00:00
bigbiff bigbiff
98f1f903cc
Remove sockets and FIFOS when removing files
2013-01-19 18:46:13 -05:00
Dees_Troy
4bb33ac46b
Fix handling of blkid output
...
Fixed handling of blkid output when the output spans multiple
lines and the TYPE field ended up on next line.
2013-01-18 21:06:09 +00:00
Dees_Troy
1c1ac44eaa
Save version to cache
2013-01-17 21:44:57 +00:00