- 19 Dec, 2014 1 commit
-
-
Ethan Yonker authored
Implement a pipe between TWRP and MTP to allow TWRP to tell MTP to remove storage partitions as they become unavailable (e.g. during a wipe, unmount, etc) instead of disabling MTP completely. This includes some fixes and improvements in destructors to properly remove / delete various items. This also means that we will not be toggling adb off and on quite as often. I do not like that we had to add another thread, but we were unable to use select() on the mtp_usb character device because this device does not support polling. Select always returned indicating that the mtp file descriptor was ready to be read and the resulting read would block. The read block prevented us from being able to include reading of the pipe between TWRP and MTP in the main MTP thread. We might want to add a return pipe letting TWRP know if the removal of the storage device was successful, but I am not sure how we want to implement this. It would invovle timeouts in both TWRP and MTP to ensure that we returned a failure indicator in a timely manner to TWRP and prevent deleting the storage device in the case of a failure. Right now we make no attempt to ensure that an MTP operation is underway like a large file transfer, but we were not doing anything like this in the past. In some respects we have limited control over what happens. If the user installs a zip that unmounts a storage partition, we will not know about the change in storage status anyway. Regular Android does not have these troubles because partitions rarely get unmounted like in recovery. At some point, we have to hold the user accountable for performing actions that may remove a storage partition while they are using MTP anyway. Ideally we do not want to toggle the USB IDs and thus toggle adb off and on during early boot, but I am not sure what the best way to handle that at this time. Change-Id: I9343e5396bf6023d3b994de1bf01ed91d129bc14
-
- 04 Dec, 2014 2 commits
-
-
bigbiff authored
Change-Id: If8114b5eac741db6c512fb35cb48e3825c2ff098
-
Ethan Yonker authored
Trim cryptfs.c to remove functions that TWRP does not use for decrypt and remove the need for libfs_mgr from cryptfs.c by passing some items to cryptfs.c from the partition manager. Add support for new fstab flags: encryptable and forceencrypt=/path/to/cryptokey For example: flags=forceencrypt=/dev/block/platform/sdhci-tegra.3/by-name/MD1 Note that "footer" is the default, so you do not need to set this flag on devices that use the footer for the crypto key. Also add mounttodecrypt if you need to mount a partition during the decrypt cycle for firmware of proprietary libs. Clean up decrypt and only support one version Android 5.0 lollipop decrypt should be backwards compatible with older versions so we will only support one version, 1.3 that came with 5.0 lollipop. Remove support for Samsung TouchWiz decrypt. It does not work with the latest versions of Samsung encryption anyway and it has not been updated to work with any AOSP decryption higher than 1.1 Change-Id: I2d9c6e31df50268c91ee642c2fa090f901d9d5c9
-
- 04 Nov, 2014 1 commit
-
-
that authored
Change-Id: Ia6eefd23f6671428221e35642f01534bc9fff6ad
-
- 08 Oct, 2014 1 commit
-
-
that authored
- use std::map instead of linked list - read directories on demand - fix writing zip files to storage root - fix creating directories - lots of minor fixes - simplify generation of storage IDs and make them spec compliant Change-Id: I2137c27549ddbdc58466f2e3aeda464fac70a3c5
-
- 19 Sep, 2014 1 commit
-
-
Ethan Yonker authored
Change-Id: Ia3007fbced9ce3bc94efdb3dacc582a5e68a49a4
-
- 15 Sep, 2014 1 commit
-
-
Ethan Yonker authored
Change-Id: I9fcd7e0169fbdd52405c0c86aafbef091f69411e
-
- 04 Sep, 2014 1 commit
-
-
Ethan Yonker authored
Change-Id: I95cf6f4def0c86f40c775738f0712323f0a0f146
-
- 02 Sep, 2014 1 commit
-
-
bigbiff bigbiff authored
Big thanks to Dees_Troy for helping with the implementation. Change-Id: I6c9c522b9c9de5dc139e2ecb0141008182ba07f0
-
- 09 Jul, 2014 1 commit
-
-
Ethan Yonker authored
Track backup and restore progress based on the sizes of the files as they are being added to the tar backup file. Update the progress bar based on the sizes of the files. Change-Id: Idf649efa1db3e91830b4b2add86203a3f30042ff
-
- 04 Jun, 2014 1 commit
-
-
Ethan Yonker authored
Change-Id: I9043e98e1e1ed4722f05c13a60b43d2d0bf739f6
-
- 31 May, 2014 1 commit
-
-
Vojtech Bocek authored
Change-Id: Ia5957efe616defa4272501cd8f31d26d394077bb Signed-off-by:
Vojtech Bocek <vbocek@gmail.com>
-
- 16 Apr, 2014 1 commit
-
-
Matt Mower authored
Some devices (jewel, m8) have .android_secure at a non-standard location. Allow a different partition to be specified as the home of .android_secure using the fstab flag 'andsec'. Using the /data/media variant of jewel as an example, recovery.fstab or twrp.fstab could be edited like follows: /external_sd vfat /dev/block/mmcblk1p1 flags=display="MicroSD";andsec Note, this is NOT a method to move .android_secure in your ROM. Your ROM must already write to this alternative location. Change-Id: I3a6e4e63aaddb35870b79e80938b0f9c2c902443
-
- 01 Apr, 2014 1 commit
-
-
Ethan Yonker authored
Change-Id: I5743d9b967a8227c4bb87da01a9c67c574bf9876
-
- 13 Mar, 2014 1 commit
-
-
Ethan Yonker authored
Change-Id: I8af92543c2f0c201e7220267c417d74e4561038d
-
- 19 Dec, 2013 2 commits
-
-
bigbiff bigbiff authored
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
-
Hashcode authored
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
-
- 24 Oct, 2013 1 commit
-
- 22 Oct, 2013 1 commit
-
-
Dees Troy authored
-
- 30 Aug, 2013 1 commit
-
-
Hashcode authored
Change-Id: I58f4a8cedf31e6b6efd88f96a43ed525603ae311
-
- 29 Aug, 2013 1 commit
-
-
Dees_Troy authored
Need to add this to your source tree: https://github.com/razrqcom-dev-team/android_external_f2fs-tools Change-Id: I3ee9ebbb617259655518f8ea356ce7b8c246cd4d
-
- 24 Aug, 2013 1 commit
-
-
Vojtech Bocek authored
* Remove useless 'virtual' keyword * Set proper members visibility Signed-off-by:
Vojtech Bocek <vbocek@gmail.com>
-
- 03 Jul, 2013 1 commit
-
-
Dees_Troy authored
Also copy recovery.fstab to cache and create a storage.fstab in cache for app/apk use.
-
- 22 Jun, 2013 1 commit
-
-
Dees_Troy authored
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
-
- 30 Mar, 2013 1 commit
-
-
Dees_Troy authored
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
-
- 15 Jan, 2013 1 commit
-
-
Dees_Troy authored
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.
-
- 09 Jan, 2013 2 commits
-
-
Dees_Troy authored
-
bigbiff bigbiff authored
Add proper mkdosfs tool Add fuse to TWRP Add experimental exfat-fuse to TWRP Convert all system() functions to use new Exec_Cmd function
-
- 12 Dec, 2012 1 commit
-
-
Dees_Troy authored
Change-Id: I8f2b5b68a8c3ede74858d53002efab997174ee65
-
- 22 Nov, 2012 1 commit
-
-
Gary Peck authored
Change-Id: Ie44958a148d00cadd2ba3c51255f7fd9d8a651e7
-
- 14 Oct, 2012 1 commit
-
-
Dees_Troy authored
-
- 13 Oct, 2012 1 commit
-
-
Dees_Troy authored
-
- 12 Oct, 2012 1 commit
-
-
Dees_Troy authored
-
- 09 Oct, 2012 1 commit
-
-
bigbiff bigbiff authored
-
- 27 Sep, 2012 2 commits
- 26 Sep, 2012 4 commits