Commit Graph

56 Commits

Author SHA1 Message Date
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
91862e618e Fix handling of subpartitions 2013-04-04 23:48:21 +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
ChampionSwimmer
cf33e4dbcd support devices without bootpartition
if device has no /boot partition, then add the following flag in BoardConfig.mk

TW_HAS_NO_BOOT_PARTITION

Signed-off-by: ChampionSwimmer <android@championswimmer.tk>

Change-Id: I92b36b2e6ca690e2422b36004ae9bb315d24a7c2
2013-02-19 18:20:45 +00:00
bigbiff bigbiff
2c57d789df convert file_bps to be unsigned long long
Change-Id: Ib5d9ca8f9a2a4e27d9798665b312376a7d9c571c
2013-02-19 18:08:03 +00: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
6a042c8443 Disable USB Mass Storage if the USB lun file does not exist.
Change-Id: I185edb4538fa84c17fc2b9a803557bb7a622f880
2013-01-24 19:45:54 +00:00
Dees_Troy
d4b22b0f4f Move backup folder creation to after free space calc
Also fix free space calculation
2013-01-18 17:20:18 +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
20c02c0953 Fix ifdefs for Samsung encryption 2013-01-10 14:15:01 +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
a3955269
6ff55cefd0 Add Samsung TouchWiz decryption
Change-Id: I418680e59372160dabfe3e2d5f0208229aa151ae
2013-01-08 20:09:56 +00: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
Dees_Troy
68cab49d96 Add ignore blkid flag for Transformers
Change-Id: I8f2b5b68a8c3ede74858d53002efab997174ee65
2012-12-12 19:29:35 +00:00
Gary Peck
004d48b105 print partition details independent of whether its mountable
Change-Id: Ibbc3bf3d3264fb9852f8312ece0567950aace496
2012-11-22 05:55:33 -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
Dees_Troy
1a650e6fc4 Unmount main partitions after fixing permissions 2012-10-19 20:54:32 -04:00
Dees_Troy
d21618cd64 Update and improve USB storage code 2012-10-14 18:48:49 -04:00
Dees_Troy
f4ca6128b7 Handle single lun file for USB storage 2012-10-13 22:17:20 -04:00
Dees_Troy
aa9cc401d6 Fix problem with sizes of images after reset default 2012-10-13 12:14:05 -04:00
Dees_Troy
cfd73ef8f9 Unmount main partitions after USB storage disable 2012-10-12 16:52:00 -04:00
Dees_Troy
d0384ef73e Unmount system after boot, backup, and restore 2012-10-12 12:15:42 -04:00
bigbiff bigbiff
a0f8a59aa1 redo fix permissions in c++ for faster changes 2012-10-09 21:01:03 -04:00
Dees_Troy
9350b8d6ed Update sdcard partitioning to C++ 2012-09-27 12:40:09 -04:00
Dees_Troy
c9ff7a341b Port backup name checking to Partition Manager 2012-09-27 10:40:03 -04:00
Dees_Troy
2c50e18ca3 Handle mountable boot partitions 2012-09-26 20:05:28 -04:00
Dees_Troy
2ff5a8dc5b Add option to wipe android secure 2012-09-26 14:53:02 -04:00
Dees_Troy
4be841b09a Fix permissions updates
Also redirect stderr output on terminal commands for display in
GUI console
2012-09-26 14:12:11 -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
b46a684971 Unify portrait layouts again 2012-09-26 09:00:46 -04:00
Dees_Troy
c5865ab0a2 Fix skip MD5 setting during backup 2012-09-24 15:08:04 -04:00
Dees_Troy
093b7648e0 Add progress bar support to backup and restore 2012-09-21 15:59:38 -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
2a92358be3 Fix fstab and unmount problems
Fix a problem parsing some recovery.fstab files.
Fixed a problem with MD5 checking that prevented unmounting
after md5 checking.
2012-09-20 12:14:56 -04:00
Dees_Troy
812660fd1d Add and improve OpenRecoveryScript support
Improve zip finding in ORS engine
Add support for restoring with just a backup name
2012-09-20 10:40:20 -04:00
Dees_Troy
8170a92145 Cleanup extra-functions 2012-09-18 15:44:39 -04:00
Dees_Troy
4a2a126740 Improve backup and restore
Add in archive splitting support
2012-09-18 09:37:15 -04:00
Dees_Troy
43d8b00770 Update backup and restore code, adb sideload
Fixed a problem with using make_ext4fs by making its lib
a dynamic lib.
Added ADB sideload zip install feature - no way to cancel it yet.
Improve backup and restore code.
2012-09-17 16:06:12 -04:00
Dees_Troy
38bd760b58 Add wipe functions, compiles in CM7, text shows in UI, zips install
Zip install works, had to move mincrypt code into TWRP to prevent
a crash when checking the zip signature.
Added wipe functions
Made it compile in CM7
Made text show up in console and logging
2012-09-14 13:36:32 -04:00