Commit Graph

58 Commits

Author SHA1 Message Date
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
Dees_Troy
a58beade0a Port reboot functions to C++ 2012-09-27 09:50:56 -04:00
Dees_Troy
2c50e18ca3 Handle mountable boot partitions 2012-09-26 20:05:28 -04:00
Dees_Troy
b1dab8dca9 Backup size for special partitions that are images 2012-09-26 12:16:41 -04:00
Dees_Troy
094207a4d7 Fix problems with MTD devices
Also improve handling of MTD names
2012-09-26 12:01:13 -04:00
Dees_Troy
7c2dec8020 Add backup size checking
Converted bootloader.cpp to TWRP and removed AOSP fstab parsing
from startup
2012-09-26 09:50:10 -04:00
Dees_Troy
9df963c9cd Convert makelist to C++ 2012-09-26 09:02:40 -04:00
Dees_Troy
b46a684971 Unify portrait layouts again 2012-09-26 09:00:46 -04:00
Dees_Troy
2691f9d7f8 Update tablet layouts with ADB sideload 2012-09-24 11:15:57 -04:00
Dees_Troy
ab10ee2098 Fix special partition handling 2012-09-21 14:27:30 -04:00
Dees_Troy
e58d5269a6 Add android_secure support 2012-09-21 12:27:57 -04:00
Dees_Troy
c51f1f994a Various fixes
Modify AOSP mount and wipe functions to use Partition Manager.
Update wipe code to reset the log file index when wiping cache.
Add ADB sideload to 540x960 theme.
2012-09-20 15:32:50 -04:00
Dees_Troy
8170a92145 Cleanup extra-functions 2012-09-18 15:44:39 -04:00