vold_decrypt: automatically set Android version & patch level

- Requires TW_INCLUDE_LIBRESETPROP
  (set automatically if TW_OEM_BUILD is not set)
- Set based on installed system (if present)
- Will set values back to TWRP defaults
  after decryption completes
- Only included/run on Oreo+ systems

Change-Id: I41fcc1af8cd4b15329574f7403f7491320199f48
(cherry picked from commit 3284a66e23fbc6e1a82df668b497ef931d9c0081)
3 files changed
tree: 2f9f34597ca7aea741cb1e0f5d3e98586ed2c038
  1. .github/
  2. adbbu/
  3. applypatch/
  4. attr/
  5. bmlutils/
  6. boot_control/
  7. bootloader_message/
  8. bootloader_message_twrp/
  9. crypto/
  10. dosfstools/
  11. edify/
  12. etc/
  13. exfat/
  14. fastboot/
  15. fb2png/
  16. flashutils/
  17. fonts/
  18. fuse/
  19. fuse_sideload/
  20. fuse_sideload28/
  21. gpt/
  22. gui/
  23. htcdumlock/
  24. injecttwrp/
  25. install/
  26. install28/
  27. libblkid/
  28. libcrecovery/
  29. libmincrypt/
  30. libpixelflinger/
  31. libtar/
  32. minadbd/
  33. minadbd21/
  34. minui/
  35. minui21/
  36. minuitwrp/
  37. minzip/
  38. misc_writer/
  39. mmcutils/
  40. mtdutils/
  41. mtp/
  42. openaes/
  43. orscmd/
  44. otafault/
  45. otautil/
  46. pigz/
  47. prebuilt/
  48. recovery_ui/
  49. res/
  50. res-hdpi/
  51. res-mdpi/
  52. res-xhdpi/
  53. res-xxhdpi/
  54. res-xxxhdpi/
  55. scripts/
  56. sepolicy/
  57. simg2img/
  58. tests/
  59. tools/
  60. twrpDigest/
  61. twrpTarMain/
  62. uncrypt/
  63. update_verifier/
  64. updater/
  65. updater_sample/
  66. verifier24/
  67. verifier28/
  68. .clang-format
  69. .gitignore
  70. Android.bp
  71. Android.mk
  72. BasePartition.cpp
  73. bootloader.h
  74. CleanSpec.mk
  75. common.h
  76. data.cpp
  77. data.hpp
  78. exclude.cpp
  79. exclude.hpp
  80. find_file.cpp
  81. find_file.hpp
  82. fixContexts.cpp
  83. fixContexts.hpp
  84. fsck_unshare_blocks.cpp
  85. fsck_unshare_blocks.h
  86. fuse.h
  87. fuse_sideload22.cpp
  88. fuse_sideload22.h
  89. infomanager.cpp
  90. infomanager.hpp
  91. interlace-frames.py
  92. legacy_properties.h
  93. mounts.c
  94. NOTICE
  95. openrecoveryscript.cpp
  96. openrecoveryscript.hpp
  97. OWNERS
  98. partition.cpp
  99. partitionmanager.cpp
  100. partitions.hpp
  101. PREUPLOAD.cfg
  102. progresstracking.cpp
  103. progresstracking.hpp
  104. README.md
  105. recovery-persist.cpp
  106. recovery-persist.rc
  107. recovery-refresh.cpp
  108. recovery-refresh.rc
  109. recovery.cpp
  110. recovery.h
  111. recovery_main.cpp
  112. recovery_ui.h
  113. tarWrite.c
  114. tarWrite.h
  115. twcommon.h
  116. twinstall.cpp
  117. twinstall.h
  118. twinstallorig.cpp
  119. twinstallorig.h
  120. twrp-functions.cpp
  121. twrp-functions.hpp
  122. twrp.cpp
  123. twrpAdbBuFifo.cpp
  124. twrpAdbBuFifo.hpp
  125. twrpDigestDriver.cpp
  126. twrpDigestDriver.hpp
  127. twrpTar.cpp
  128. twrpTar.h
  129. twrpTar.hpp
  130. variables.h