Name Date Size #Lines LOC

..23-Oct-2020-

applypatch/H23-Oct-2020-

boot_control/H23-Oct-2020-

bootloader_message/H23-Oct-2020-

edify/H23-Oct-2020-

etc/H23-Oct-2020-

fonts/H23-Oct-2020-

minadbd/H23-Oct-2020-

minui/H23-Oct-2020-

otafault/H23-Oct-2020-

otautil/H23-Oct-2020-

private/H23-Oct-2020-

res-560dpi/images/H23-Oct-2020-

res-hdpi/images/H23-Oct-2020-

res-mdpi/images/H23-Oct-2020-

res-xhdpi/images/H23-Oct-2020-

res-xxhdpi/images/H23-Oct-2020-

res-xxxhdpi/images/H23-Oct-2020-

tests/H23-Oct-2020-

tools/H23-Oct-2020-

uncrypt/H23-Oct-2020-

update_verifier/H23-Oct-2020-

updater/H23-Oct-2020-

.clang-formatH A D23-Oct-2020334 1613

Android.bpH A D23-Oct-202055 54

Android.mkH A D23-Oct-20206.8 KiB269192

CleanSpec.mkH A D23-Oct-20202.4 KiB522

NOTICEH A D23-Oct-202010.4 KiB191158

OWNERSH A D23-Oct-202063 43

README.mdH A D23-Oct-20201.6 KiB5036

adb_install.cppH A D23-Oct-20204.3 KiB14497

adb_install.hH A D23-Oct-2020740 234

asn1_decoder.cppH A D23-Oct-20203.6 KiB159125

asn1_decoder.hH A D23-Oct-20201.7 KiB5632

bootloader.hH A D23-Oct-2020775 191

common.hH A D23-Oct-20201.2 KiB4917

default_device.cppH A D23-Oct-2020734 235

device.cppH A D23-Oct-20202.3 KiB8758

device.hH A D23-Oct-20204.2 KiB11042

error_code.hH A D23-Oct-20201.8 KiB7453

fuse_sdcard_provider.cppH A D23-Oct-20202.4 KiB8652

fuse_sdcard_provider.hH A D23-Oct-2020738 234

fuse_sideload.cppH A D23-Oct-202016.7 KiB530351

fuse_sideload.hH A D23-Oct-20201.4 KiB3914

install.cppH A D23-Oct-202025.2 KiB716527

install.hH A D23-Oct-20201.7 KiB4412

interlace-frames.pyH A D23-Oct-20203.5 KiB11569

mounts.cppH A D23-Oct-20202.3 KiB8354

mounts.hH A D23-Oct-2020847 297

print_sha1.hH A D23-Oct-20201.4 KiB4824

recovery-persist.cppH A D23-Oct-20205.1 KiB17197

recovery-persist.rcH A D23-Oct-2020116 43

recovery-refresh.cppH A D23-Oct-20202.6 KiB7224

recovery-refresh.rcH A D23-Oct-202065 32

recovery.cppH A D23-Oct-202056.1 KiB1,6521,215

roots.cppH A D23-Oct-202011.3 KiB354281

roots.hH A D23-Oct-20201.9 KiB5512

rotate_logs.cppH A D23-Oct-20203.7 KiB11680

rotate_logs.hH A D23-Oct-20201.4 KiB4518

screen_ui.cppH A D23-Oct-202024.6 KiB844668

screen_ui.hH A D23-Oct-20205.5 KiB197110

stub_ui.hH A D23-Oct-20201.8 KiB6635

ui.cppH A D23-Oct-202019 KiB597435

ui.hH A D23-Oct-20207 KiB20594

verifier.cppH A D23-Oct-202017.8 KiB554358

verifier.hH A D23-Oct-20202.2 KiB7742

vr_device.cppH A D23-Oct-2020729 245

vr_ui.cppH A D23-Oct-20201.2 KiB3615

vr_ui.hH A D23-Oct-20201.1 KiB3712

wear_device.cppH A D23-Oct-2020731 245

wear_ui.cppH A D23-Oct-202011.3 KiB402304

wear_ui.hH A D23-Oct-20202.2 KiB8036

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