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