• Home
  • Annotate
  • current directory
Name Date Size

..05-Dec-2017-

applypatch/05-Dec-2017-

bootloader_message/05-Dec-2017-

edify/05-Dec-2017-

etc/05-Dec-2017-

fonts/05-Dec-2017-

minadbd/05-Dec-2017-

minui/05-Dec-2017-

otafault/05-Dec-2017-

otautil/05-Dec-2017-

private/05-Dec-2017-

res-560dpi/images/05-Dec-2017-

res-hdpi/images/05-Dec-2017-

res-mdpi/images/05-Dec-2017-

res-xhdpi/images/05-Dec-2017-

res-xxhdpi/images/05-Dec-2017-

res-xxxhdpi/images/05-Dec-2017-

tests/05-Dec-2017-

tools/05-Dec-2017-

uncrypt/05-Dec-2017-

update_verifier/05-Dec-2017-

updater/05-Dec-2017-

.clang-format A D05-Dec-2017334

Android.mk A D05-Dec-20174.9 KiB

CleanSpec.mk A D05-Dec-20172.4 KiB

NOTICE A D05-Dec-201710.4 KiB

README.md A D05-Dec-20171.6 KiB

adb_install.cpp A D05-Dec-20174.2 KiB

adb_install.h A D05-Dec-2017774

asn1_decoder.cpp A D05-Dec-20173.6 KiB

asn1_decoder.h A D05-Dec-20171.7 KiB

bootloader.h A D05-Dec-2017775

common.h A D05-Dec-20171.2 KiB

default_device.cpp A D05-Dec-2017734

device.cpp A D05-Dec-20172.3 KiB

device.h A D05-Dec-20174.2 KiB

error_code.h A D05-Dec-20171.7 KiB

fuse_sdcard_provider.cpp A D05-Dec-20172.4 KiB

fuse_sdcard_provider.h A D05-Dec-2017738

fuse_sideload.cpp A D05-Dec-201717 KiB

fuse_sideload.h A D05-Dec-20171.4 KiB

install.cpp A D05-Dec-201725.8 KiB

install.h A D05-Dec-20171.7 KiB

interlace-frames.py A D05-Dec-20173.5 KiB

mounts.cpp A D05-Dec-20172.6 KiB

mounts.h A D05-Dec-2017961

print_sha1.h A D05-Dec-20171.4 KiB

recovery-persist.cpp A D05-Dec-20175.1 KiB

recovery-persist.rc A D05-Dec-2017116

recovery-refresh.cpp A D05-Dec-20172.6 KiB

recovery-refresh.rc A D05-Dec-201765

recovery.cpp A D05-Dec-201755.6 KiB

roots.cpp A D05-Dec-20179 KiB

roots.h A D05-Dec-20171.9 KiB

rotate_logs.cpp A D05-Dec-20173.7 KiB

rotate_logs.h A D05-Dec-20171.4 KiB

screen_ui.cpp A D05-Dec-201724.8 KiB

screen_ui.h A D05-Dec-20174.7 KiB

stub_ui.h A D05-Dec-20171.8 KiB

ui.cpp A D05-Dec-201713.8 KiB

ui.h A D05-Dec-20176.6 KiB

verifier.cpp A D05-Dec-201718.2 KiB

verifier.h A D05-Dec-20172.2 KiB

wear_touch.cpp A D05-Dec-20174.5 KiB

wear_touch.h A D05-Dec-20171.4 KiB

wear_ui.cpp A D05-Dec-201712.3 KiB

wear_ui.h A D05-Dec-20172.3 KiB

README.md

1The Recovery Image
2==================
3
4Quick turn-around testing
5-------------------------
6
7    mm -j && m ramdisk-nodeps && m recoveryimage-nodeps
8
9    # To boot into the new recovery image
10    # without flashing the recovery partition:
11    adb reboot bootloader
12    fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
13
14Running the tests
15-----------------
16    # After setting up environment and lunch.
17    mmma -j bootable/recovery
18
19    # Running the tests on device.
20    adb root
21    adb sync data
22
23    # 32-bit device
24    adb shell /data/nativetest/recovery_unit_test/recovery_unit_test
25    adb shell /data/nativetest/recovery_component_test/recovery_component_test
26
27    # Or 64-bit device
28    adb shell /data/nativetest64/recovery_unit_test/recovery_unit_test
29    adb shell /data/nativetest64/recovery_component_test/recovery_component_test
30
31Running the manual tests
32------------------------
33
34`recovery-refresh` and `recovery-persist` executables exist only on systems without
35/cache partition. And we need to follow special steps to run tests for them.
36
37- Execute the test on an A/B device first. The test should fail but it will log
38  some contents to pmsg.
39
40- Reboot the device immediately and run the test again. The test should save the
41  contents of pmsg buffer into /data/misc/recovery/inject.txt. Test will pass if
42  this file has expected contents.
43
44`ResourceTest` validates whether the png files are qualified as background text
45image under recovery.
46
47    1. `adb sync data` to make sure the test-dir has the images to test.
48    2. The test will automatically pickup and verify all `_text.png` files in
49       the test dir.
50