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. .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.