Support alternative .android_secure location

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
20 files changed
tree: a7eec6533b60db78ca4f2686b9b10e018406f964
  1. applypatch/
  2. bmlutils/
  3. crypto/
  4. digest/
  5. dosfstools/
  6. edify/
  7. etc/
  8. exfat/
  9. fb2png/
  10. flashutils/
  11. fonts/
  12. fuse/
  13. gui/
  14. htcdumlock/
  15. injecttwrp/
  16. libblkid/
  17. libcrecovery/
  18. libmincrypt/
  19. libtar/
  20. minadbd/
  21. minelf/
  22. minui/
  23. minuitwrp/
  24. minzip/
  25. minzipold/
  26. mmcutils/
  27. mtdutils/
  28. openaes/
  29. pigz/
  30. prebuilt/
  31. res/
  32. testdata/
  33. toolbox/
  34. tools/
  35. twrpTarMain/
  36. updater/
  37. .gitignore
  38. adb_install.cpp
  39. adb_install.h
  40. Android.mk
  41. bootloader.cpp
  42. bootloader.h
  43. CleanSpec.mk
  44. common.h
  45. data.cpp
  46. data.h
  47. data.hpp
  48. default_device.cpp
  49. device.h
  50. find_file.cpp
  51. find_file.hpp
  52. fixPermissions.cpp
  53. fixPermissions.hpp
  54. install.cpp
  55. install.h
  56. legacy_properties.h
  57. legacy_property_service.c
  58. legacy_property_service.h
  59. make-overlay.py
  60. mounts.c
  61. mounts.h
  62. NOTICE
  63. openrecoveryscript.cpp
  64. openrecoveryscript.hpp
  65. partition.cpp
  66. partitionmanager.cpp
  67. partitions.hpp
  68. README.md
  69. recovery.cpp
  70. recovery_ui.h
  71. roots.cpp
  72. roots.h
  73. screen_ui.cpp
  74. screen_ui.h
  75. tarWrite.c
  76. tarWrite.h
  77. twbootloader.cpp
  78. twcommon.h
  79. twinstall.cpp
  80. twinstall.h
  81. twrp-functions.cpp
  82. twrp-functions.hpp
  83. twrp.cpp
  84. twrpDigest.cpp
  85. twrpDigest.hpp
  86. twrpDU.cpp
  87. twrpDU.hpp
  88. twrpTar.cpp
  89. twrpTar.h
  90. twrpTar.hpp
  91. ui.cpp
  92. ui.h
  93. variables.h
  94. verifier.cpp
  95. verifier.h
  96. verifier_test.cpp
  97. 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.

If there are changes that need to be merged from AOSP, we will pull the change directly from AOSP instead of creating a new patch in order to prevent merge conflicts with AOSP.

This branch is under final testing and will be used shortly for public builds, but has not officially been released.

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.