Commit Graph

70 Commits

Author SHA1 Message Date
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
Dees_Troy
dc8bc1b28a ORS engine fixes
Fix backup to not error when a non-existant partition is given.
Fix restore to run when no partition parameters are given.
Ensure that ORS runs after decryption and that zips install.
Fix a problem with the fake internal sdcard not mounting to
/sdcard on data media devices.
2013-01-17 15:53:49 +00:00
Dees_Troy
16c2b31827 Add flag for retaining layout version
Needed on Sony mint (Xperia T) as the /data/media folder is a
separate partition and normal data media wiping is not appropriate
for this device but the layout version file needs to be retained
for Android 4.2 multi-user.
2013-01-15 16:52:41 +00:00
Dees_Troy
999b39d041 Check to ensure that external is encrypted 2013-01-14 15:36:13 +00:00
Dees_Troy
c8bafa1cc1 More Samsung sdcard crypto fixes 2013-01-10 15:43:00 +00:00
Dees_Troy
ce67546112 Fix wiping problems and save ecrypt key
Fix problems with the wiping of data/media devices
Save and restore the ecryptfs key for external sdcard on Samsung
encrypted devices.
2013-01-09 19:49:19 +00:00
Dees_Troy
85f44ed751 Improve remounting sdcard with ecryptfs 2013-01-09 18:44:25 +00:00
bigbiff bigbiff
9c754053b0 Add libtar to TWRP instead of using busybox tar
Add proper mkdosfs tool
Add fuse to TWRP
Add experimental exfat-fuse to TWRP
Convert all system() functions to use new Exec_Cmd function
2013-01-09 09:09:08 -05:00
Gary Peck
82599a87ee Improve handling of undecrypted encrypted /data
- Until the encrypted partition is decrypted, treat it as a disk image
  instead of a filesystem so that it is properly backed up using dd.
- Make Partition::Wipe() use the filesystem from fstab for disk images
  so that wiping an undecrypted /data makes it a plain unencrypted
  partition again.

Change-Id: I78db977d6348cfa66b0cfbc492fb5776f84db48d
2012-12-21 06:59:41 -08:00
Gary Peck
e8bc5d7b54 Reset partition flags when the partition is wiped
Change-Id: I6c4cee5b038fd0c39c8723412dd8f421f7794a00
2012-12-21 06:45:43 -08:00
Gary Peck
15e623db7a check backup image size before restoring
Change-Id: I206d34936388c1b072eaaec50e0492710cb80f2e
2012-12-18 21:39:06 +00:00
Dees_Troy
2204203a94 Fix handling of MTD partitions during mount 2012-12-18 21:23:08 +00:00
Dees_Troy
68cab49d96 Add ignore blkid flag for Transformers
Change-Id: I8f2b5b68a8c3ede74858d53002efab997174ee65
2012-12-12 19:29:35 +00:00
Dees_Troy
da8b55aff3 Restore text display during restore 2012-12-12 19:18:30 +00:00
Gary Peck
43acadf10e restore based on backup type, not destination type
Change-Id: Ie44958a148d00cadd2ba3c51255f7fd9d8a651e7
2012-11-22 06:09:21 -08:00
Dees_Troy
16b74353d9 Fixes for multi-user in 4.2
Also fixed inability to delete backups with a space in the name.

Change-Id: I2f6639d33caa3c4542960f76adbd59b25ab64f5d
2012-11-15 19:27:08 +00:00
bigbiff bigbiff
3e14652310 add exfat to partitions.cpp 2012-11-14 22:22:25 +00:00
Dees_Troy
5fcd8f981f Initial BML support (ext4 only) 2012-10-16 12:22:05 -04:00
Dees_Troy
8e337f3605 Handle storage devices that are slow to mount 2012-10-13 22:07:49 -04:00
Dees_Troy
7a47e7f4d2 Remove unneeded duplicate code 2012-10-13 12:31:44 -04:00
Dees_Troy
0550cfb483 Track whether a partition is mounted during refresh sizes
and leave it mounted or unmount based on prior mounting status
2012-10-13 11:56:52 -04:00
Dees_Troy
c154ac27a2 Change backup size check for dd 2012-10-12 15:36:47 -04:00
Dees_Troy
6da522d529 Fix restore of multiple archives 2012-10-12 15:19:33 -04:00
Dees_Troy
3f04d03fcb Fix derp with alternate storage 2012-10-07 18:20:09 -04:00
Dees_Troy
9b21af77e0 Fix error message on encrypted devices 2012-10-01 15:51:46 -04:00
Dees_Troy
ce2fe779c0 Revert busybox for CM7 compatibility, add exclamation point to format data 2012-09-28 12:34:33 -04:00
Dees_Troy
9350b8d6ed Update sdcard partitioning to C++ 2012-09-27 12:40:09 -04:00