Add command line capabilities

Allows sending openrecoveryscript commands to TWRP via shell.
This may be handy for visually impaired users, for various one
click utilities to drive TWRP commands from a computer, for using
TWRP when a catastrophic hardware failure like a shattered screen
prevents you from being able to use touch, or even on devices like
a TV stick where touch and USB mouse input is unavailable.

This patch also includes a few minor changes to openrecoveryscript
including proper support for rebooting via the script and for
decrypting the device via the command line.

Change-Id: I796ad168efdd2da9c25334ac93d1079daaa7b0bc
13 files changed
tree: f47a227f97e67e0ce61d00b6cea427aa0c59de95
  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. orscmd/
  30. pigz/
  31. prebuilt/
  32. res/
  33. testdata/
  34. toolbox/
  35. tools/
  36. twrpTarMain/
  37. updater/
  38. .gitignore
  39. adb_install.cpp
  40. adb_install.h
  41. Android.mk
  42. bootloader.cpp
  43. bootloader.h
  44. CleanSpec.mk
  45. common.h
  46. data.cpp
  47. data.h
  48. data.hpp
  49. default_device.cpp
  50. device.h
  51. find_file.cpp
  52. find_file.hpp
  53. fixPermissions.cpp
  54. fixPermissions.hpp
  55. infomanager.cpp
  56. infomanager.hpp
  57. install.cpp
  58. install.h
  59. legacy_properties.h
  60. legacy_property_service.c
  61. legacy_property_service.h
  62. make-overlay.py
  63. mounts.c
  64. mounts.h
  65. NOTICE
  66. openrecoveryscript.cpp
  67. openrecoveryscript.hpp
  68. partition.cpp
  69. partitionmanager.cpp
  70. partitions.hpp
  71. README.md
  72. recovery.cpp
  73. recovery_ui.h
  74. roots.cpp
  75. roots.h
  76. screen_ui.cpp
  77. screen_ui.h
  78. tarWrite.c
  79. tarWrite.h
  80. twcommon.h
  81. twinstall.cpp
  82. twinstall.h
  83. twrp-functions.cpp
  84. twrp-functions.hpp
  85. twrp.cpp
  86. twrpDigest.cpp
  87. twrpDigest.hpp
  88. twrpDU.cpp
  89. twrpDU.hpp
  90. twrpTar.cpp
  91. twrpTar.h
  92. twrpTar.hpp
  93. ui.cpp
  94. ui.h
  95. variables.h
  96. verifier.cpp
  97. verifier.h
  98. verifier_test.cpp
  99. 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.