Support reading since_epoch and secondary brightness files

TWFunc::Fixup_Time_On_Boot: Will now try to read
/sys/class/rtc/rtc0/since_epoch to correct time, if that fails
it will try to use the ats files to correct time.

TWFunc::Set_Brightness: One single function to set brightness
from both the automated functions and the gui actions. It is
able to set a second brightness path if present, it will set
them both the same value. Many Sony devices have 2 brightness
files in the sysfs that must be set to properly set the
brightness.

Change-Id: I7ca582109085dfbcb46b8de73ad031e4b7903fca
10 files changed
tree: 839ccd8f8a2c9c67c33f84b6c96ec38405939c11
  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.