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