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
2 files changed
tree: cc0ce12dc2d7689d7419c49ae54f47af7260cbb9
  1. applypatch/
  2. bmlutils/
  3. crypto/
  4. edify/
  5. etc/
  6. flashutils/
  7. gui/
  8. htcdumlock/
  9. injecttwrp/
  10. libcrecovery/
  11. libjpegtwrp/
  12. minadbd/
  13. minelf/
  14. minui/
  15. minuitwrp/
  16. minzip/
  17. mmcutils/
  18. mtdutils/
  19. pigz/
  20. prebuilt/
  21. res/
  22. testdata/
  23. tools/
  24. twmincrypt/
  25. updater/
  26. adb_install.cpp
  27. adb_install.h
  28. Android.mk
  29. bootloader.cpp
  30. bootloader.h
  31. CleanSpec.mk
  32. common.h
  33. data.cpp
  34. data.h
  35. data.hpp
  36. default_device.cpp
  37. device.h
  38. fixPermissions.cpp
  39. fixPermissions.hpp
  40. install.cpp
  41. install.h
  42. make-overlay.py
  43. makelist.cpp
  44. makelist.hpp
  45. mounts.c
  46. mounts.h
  47. NOTICE
  48. openrecoveryscript.cpp
  49. openrecoveryscript.hpp
  50. partition.cpp
  51. partitionmanager.cpp
  52. partitions.hpp
  53. README.md
  54. recovery.cpp
  55. recovery_ui.h
  56. resources.cpp
  57. roots.cpp
  58. roots.h
  59. screen_ui.cpp
  60. screen_ui.h
  61. twbootloader.cpp
  62. twinstall.cpp
  63. twinstall.h
  64. twrp-functions.cpp
  65. twrp-functions.hpp
  66. ui.cpp
  67. ui.h
  68. variables.h
  69. verifier.cpp
  70. verifier.h
  71. verifier_test.cpp
  72. verifier_test.sh
README.md

Team Win Recovery Project (TWRP)

The goal of this branch is to rebase TWRP onto AOSP while maintaining as much of the original AOSP code as possible. This goal should allow us to apply updates to the AOSP code going forward with little to no extra work. With this goal in mind, we will carefully consider any changes needed to the AOSP code before allowing them. In most cases, instead of changing the AOSP code, we'll create our own functions instead. The only changes that should be made to AOSP code should be those affecting startup of the recovery and some of the make files.

This branch is currently a work in progress, however, most features have been implemented and it is now ready for testing.

You can find a compiling guide here.

More information about the project.

If you have code changes to submit those should be pushed to our gerrit instance. A guide can be found here.