Improve backup & wipe exclusion handling

Rename twrpDU.* to exclude.*
Remove global variable for du and replace with partition specific
variables.
Use separate exclusion lists for backups and wiping.
Clean up some includes
Fix some parenthesis in twrp.cpp that I messed up.

Note: twrpTarMain command line utility compiles but probably does
not work correctly yet due to not properly setting part_settings

Change-Id: Idec9c3e6a8782ba53f3420fa79ba33394f4f85fb
15 files changed
tree: c392e0fdcf8e61e5abfb88099fd8d9b1f1ff8a70
  1. .gitignore
  2. Android.mk
  3. CleanSpec.mk
  4. NOTICE
  5. README.md
  6. adb_install.cpp
  7. adb_install.h
  8. adbbu/
  9. applypatch/
  10. asn1_decoder.cpp
  11. asn1_decoder.h
  12. bmlutils/
  13. bootloader.h
  14. bootloader_message/
  15. common.h
  16. crypto/
  17. data.cpp
  18. data.hpp
  19. default_device.cpp
  20. device.cpp
  21. device.h
  22. digest/
  23. dosfstools/
  24. edify/
  25. error_code.h
  26. etc/
  27. exclude.cpp
  28. exclude.hpp
  29. exfat/
  30. fb2png/
  31. find_file.cpp
  32. find_file.hpp
  33. fixContexts.cpp
  34. fixContexts.hpp
  35. flashutils/
  36. fonts/
  37. fuse.h
  38. fuse/
  39. fuse_sdcard_provider.cpp
  40. fuse_sdcard_provider.h
  41. fuse_sideload.cpp
  42. fuse_sideload.h
  43. gpt/
  44. gui/
  45. htcdumlock/
  46. infomanager.cpp
  47. infomanager.hpp
  48. injecttwrp/
  49. install.cpp
  50. install.h
  51. interlace-frames.py
  52. legacy_properties.h
  53. legacy_property_service.cpp
  54. legacy_property_service.h
  55. libblkid/
  56. libcrecovery/
  57. libmincrypt/
  58. libpixelflinger/
  59. libtar/
  60. minadbd.old/
  61. minadbd/
  62. minui.old/
  63. minui/
  64. minuitwrp/
  65. minzip/
  66. mmcutils/
  67. mounts.c
  68. mounts.h
  69. mtdutils/
  70. mtp/
  71. openaes/
  72. openrecoveryscript.cpp
  73. openrecoveryscript.hpp
  74. orscmd/
  75. otafault/
  76. partition.cpp
  77. partitionmanager.cpp
  78. partitions.hpp
  79. pigz/
  80. prebuilt/
  81. print_sha1.h
  82. progresstracking.cpp
  83. progresstracking.hpp
  84. recovery-persist.cpp
  85. recovery-persist.rc
  86. recovery-refresh.cpp
  87. recovery-refresh.rc
  88. recovery.cpp
  89. recovery_ui.h
  90. res-hdpi/
  91. res-mdpi/
  92. res-xhdpi/
  93. res-xxhdpi/
  94. res-xxxhdpi/
  95. res/
  96. roots.cpp
  97. roots.h
  98. screen_ui.cpp
  99. screen_ui.h
  100. scripts/
  101. sepolicy/
  102. set_metadata.cpp
  103. set_metadata.h
  104. simg2img/
  105. tarWrite.c
  106. tarWrite.h
  107. tests/
  108. toolbox/
  109. tools/
  110. toybox/
  111. tw_atomic.cpp
  112. tw_atomic.hpp
  113. twcommon.h
  114. twinstall.cpp
  115. twinstall.h
  116. twrp-functions.cpp
  117. twrp-functions.hpp
  118. twrp.cpp
  119. twrpDigest.cpp
  120. twrpDigest.hpp
  121. twrpTar.cpp
  122. twrpTar.h
  123. twrpTar.hpp
  124. twrpTarMain/
  125. ui.cpp
  126. ui.h
  127. uncrypt/
  128. unique_fd.h
  129. update_verifier/
  130. updater/
  131. variables.h
  132. verifier.cpp
  133. verifier.h
  134. verifier24/
  135. wear_touch.cpp
  136. wear_touch.h
  137. wear_ui.cpp
  138. wear_ui.h
README.md

Team Win Recovery Project (TWRP)

You can find a compiling guide here.