Improve progress bar handling for backup / restore / image flash

The progress bar will now be updated during image backups, restores
and during image flashing (except for sparse images which will require
significant changes to libsparse, and except for mtd nand using
flash_utils).

The progress bar will now be updated mid-file for file systems (tar) so
the user will see changes even during large file backup / restore.

Add a new progress tracking class to simplify handling of progress bar
updates. The class will only update the progress bar 5 times a second to
reduce the CPU load from updating the GUI frequently which does affect
backup times.

Change-Id: Iff382faef3df1f86604af336c1a8ce8993cd12c5
19 files changed
tree: 187516086121c42b1b671f69b4fc252fe5498b1c
  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. gpt/
  14. gui/
  15. htcdumlock/
  16. injecttwrp/
  17. libblkid/
  18. libcrecovery/
  19. libmincrypt/
  20. libpixelflinger/
  21. libtar/
  22. minadbd/
  23. minadbd.old/
  24. minui/
  25. minui.old/
  26. minuitwrp/
  27. minzip/
  28. mmcutils/
  29. mtdutils/
  30. mtp/
  31. openaes/
  32. orscmd/
  33. pigz/
  34. prebuilt/
  35. res/
  36. res-hdpi/
  37. res-mdpi/
  38. res-xhdpi/
  39. res-xxhdpi/
  40. res-xxxhdpi/
  41. scripts/
  42. sepolicy/
  43. simg2img/
  44. testdata/
  45. tests/
  46. toolbox/
  47. tools/
  48. toybox/
  49. twrpTarMain/
  50. uncrypt/
  51. updater/
  52. .gitignore
  53. adb_install.cpp
  54. adb_install.h
  55. Android.mk
  56. asn1_decoder.cpp
  57. asn1_decoder.h
  58. bootloader.cpp
  59. bootloader.h
  60. CleanSpec.mk
  61. common.h
  62. data.cpp
  63. data.hpp
  64. default_device.cpp
  65. device.cpp
  66. device.h
  67. find_file.cpp
  68. find_file.hpp
  69. fixContexts.cpp
  70. fixContexts.hpp
  71. fuse.h
  72. fuse_sdcard_provider.c
  73. fuse_sdcard_provider.h
  74. fuse_sideload.c
  75. fuse_sideload.h
  76. infomanager.cpp
  77. infomanager.hpp
  78. install.cpp
  79. install.h
  80. interlace-frames.py
  81. legacy_properties.h
  82. legacy_property_service.c
  83. legacy_property_service.h
  84. mounts.c
  85. mounts.h
  86. NOTICE
  87. openrecoveryscript.cpp
  88. openrecoveryscript.hpp
  89. partition.cpp
  90. partitionmanager.cpp
  91. partitions.hpp
  92. progresstracking.cpp
  93. progresstracking.hpp
  94. README.md
  95. recovery.cpp
  96. recovery_ui.h
  97. roots.cpp
  98. roots.h
  99. screen_ui.cpp
  100. screen_ui.h
  101. set_metadata.c
  102. set_metadata.h
  103. tarWrite.c
  104. tarWrite.h
  105. tw_atomic.cpp
  106. tw_atomic.hpp
  107. twcommon.h
  108. twinstall.cpp
  109. twinstall.h
  110. twrp-functions.cpp
  111. twrp-functions.hpp
  112. twrp.cpp
  113. twrpDigest.cpp
  114. twrpDigest.hpp
  115. twrpDU.cpp
  116. twrpDU.hpp
  117. twrpTar.cpp
  118. twrpTar.h
  119. twrpTar.hpp
  120. ui.cpp
  121. ui.h
  122. variables.h
  123. verifier.cpp
  124. verifier.h
  125. verifier_test.cpp
  126. verifier_test.sh
README.md

Team Win Recovery Project (TWRP)

You can find a compiling guide here.