Create bootloader_message static library.

bootloader_messages merges bootloader_message_writer
and bootloader.cpp, so we can use the same library to
manage bootloader_message in normal boot and recovery mode.

Bug: 29582118

Change-Id: I9efdf776ef8f02b53911ff43a518e035e0c29618
(cherry picked from commit 2f272c0551f984e83bc5abaf240e0dddb38a3326)
9 files changed
tree: 75e9a712d25b278d7bb100453ebb1ca41da950c0
  1. Android.mk
  2. CleanSpec.mk
  3. NOTICE
  4. README.md
  5. adb_install.cpp
  6. adb_install.h
  7. applypatch/
  8. asn1_decoder.cpp
  9. asn1_decoder.h
  10. bootloader.cpp
  11. bootloader.h
  12. bootloader_message/
  13. common.h
  14. default_device.cpp
  15. device.cpp
  16. device.h
  17. edify/
  18. error_code.h
  19. etc/
  20. fonts/
  21. fuse_sdcard_provider.cpp
  22. fuse_sdcard_provider.h
  23. fuse_sideload.cpp
  24. fuse_sideload.h
  25. install.cpp
  26. install.h
  27. interlace-frames.py
  28. minadbd/
  29. minui/
  30. mounts.cpp
  31. mounts.h
  32. otafault/
  33. otautil/
  34. print_sha1.h
  35. recovery-persist.cpp
  36. recovery-persist.rc
  37. recovery-refresh.cpp
  38. recovery-refresh.rc
  39. recovery.cpp
  40. res-hdpi/
  41. res-mdpi/
  42. res-xhdpi/
  43. res-xxhdpi/
  44. res-xxxhdpi/
  45. roots.cpp
  46. roots.h
  47. screen_ui.cpp
  48. screen_ui.h
  49. tests/
  50. tools/
  51. ui.cpp
  52. ui.h
  53. uncrypt/
  54. update_verifier/
  55. updater/
  56. verifier.cpp
  57. verifier.h
  58. wear_touch.cpp
  59. wear_touch.h
  60. wear_ui.cpp
  61. wear_ui.h
README.md

The Recovery Image

Quick turn-around testing

mm -j && m ramdisk-nodeps && m recoveryimage-nodeps

# To boot into the new recovery image
# without flashing the recovery partition:
adb reboot bootloader
fastboot boot $ANDROID_PRODUCT_OUT/recovery.img

Running the tests

# After setting up environment and lunch.
mmma -j bootable/recovery

# Running the tests on device.
adb root
adb sync data

# 32-bit device
adb shell /data/nativetest/recovery_unit_test/recovery_unit_test
adb shell /data/nativetest/recovery_component_test/recovery_component_test

# Or 64-bit device
adb shell /data/nativetest64/recovery_unit_test/recovery_unit_test
adb shell /data/nativetest64/recovery_component_test/recovery_component_test