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. .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. infomanager.cpp
  35. infomanager.hpp
  36. injecttwrp/
  37. install.cpp
  38. install.h
  39. legacy_properties.h
  40. legacy_property_service.c
  41. legacy_property_service.h
  42. libblkid/
  43. libcrecovery/
  44. libmincrypt/
  45. libtar/
  46. make-overlay.py
  47. minadbd/
  48. minelf/
  49. minui/
  50. minuitwrp/
  51. minzip/
  52. minzipold/
  53. mmcutils/
  54. mounts.c
  55. mounts.h
  56. mtdutils/
  57. openaes/
  58. openrecoveryscript.cpp
  59. openrecoveryscript.hpp
  60. orscmd/
  61. partition.cpp
  62. partitionmanager.cpp
  63. partitions.hpp
  64. pigz/
  65. prebuilt/
  66. recovery.cpp
  67. recovery_ui.h
  68. res/
  69. roots.cpp
  70. roots.h
  71. screen_ui.cpp
  72. screen_ui.h
  73. tarWrite.c
  74. tarWrite.h
  75. testdata/
  76. toolbox/
  77. tools/
  78. twcommon.h
  79. twinstall.cpp
  80. twinstall.h
  81. twrp-functions.cpp
  82. twrp-functions.hpp
  83. twrp.cpp
  84. twrpDU.cpp
  85. twrpDU.hpp
  86. twrpDigest.cpp
  87. twrpDigest.hpp
  88. twrpTar.cpp
  89. twrpTar.h
  90. twrpTar.hpp
  91. twrpTarMain/
  92. ui.cpp
  93. ui.h
  94. updater/
  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.