• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

applypatch/22-Nov-2023-3,4382,250

bootloader_message/22-Nov-2023-482269

edify/22-Nov-2023-1,127772

etc/22-Nov-2023-10479

fonts/22-Nov-2023-10179

minadbd/22-Nov-2023-401220

minui/22-Nov-2023-2,5151,818

otafault/22-Nov-2023-502285

otautil/22-Nov-2023-862492

private/22-Nov-2023-286

res-560dpi/images/22-Nov-2023-

res-hdpi/images/22-Nov-2023-

res-mdpi/images/22-Nov-2023-

res-xhdpi/images/22-Nov-2023-

res-xxhdpi/images/22-Nov-2023-

res-xxxhdpi/images/22-Nov-2023-

tests/22-Nov-2023-4,0972,864

tools/22-Nov-2023-1,5871,233

uncrypt/22-Nov-2023-739510

update_verifier/22-Nov-2023-315208

updater/22-Nov-2023-3,4412,380

.clang-formatD22-Nov-2023334 1613

.gitD01-Jan-19700

Android.mkD22-Nov-20234.9 KiB199144

CleanSpec.mkD22-Nov-20232.4 KiB522

NOTICED22-Nov-202310.4 KiB191158

README.mdD22-Nov-20231.6 KiB5036

adb_install.cppD22-Nov-20234.2 KiB13893

adb_install.hD22-Nov-2023774 255

asn1_decoder.cppD22-Nov-20233.6 KiB159125

asn1_decoder.hD22-Nov-20231.7 KiB5632

bootloader.hD22-Nov-2023775 191

common.hD22-Nov-20231.2 KiB4917

default_device.cppD22-Nov-2023734 235

device.cppD22-Nov-20232.3 KiB8758

device.hD22-Nov-20234.2 KiB11042

error_code.hD22-Nov-20231.7 KiB7251

fuse_sdcard_provider.cppD22-Nov-20232.4 KiB8652

fuse_sdcard_provider.hD22-Nov-2023738 234

fuse_sideload.cppD22-Nov-202317 KiB526349

fuse_sideload.hD22-Nov-20231.4 KiB3914

install.cppD22-Nov-202325.8 KiB724532

install.hD22-Nov-20231.7 KiB4512

interlace-frames.pyD22-Nov-20233.5 KiB11569

mounts.cppD22-Nov-20232.6 KiB9059

mounts.hD22-Nov-2023961 339

print_sha1.hD22-Nov-20231.4 KiB4824

recovery-persist.cppD22-Nov-20235.1 KiB17197

recovery-persist.rcD22-Nov-2023116 43

recovery-refresh.cppD22-Nov-20232.6 KiB7224

recovery-refresh.rcD22-Nov-202365 32

recovery.cppD22-Nov-202355.6 KiB1,6461,215

roots.cppD22-Nov-20239 KiB286226

roots.hD22-Nov-20231.9 KiB5512

rotate_logs.cppD22-Nov-20233.7 KiB11680

rotate_logs.hD22-Nov-20231.4 KiB4518

screen_ui.cppD22-Nov-202324.8 KiB809636

screen_ui.hD22-Nov-20234.7 KiB17498

stub_ui.hD22-Nov-20231.8 KiB6635

ui.cppD22-Nov-202313.8 KiB446340

ui.hD22-Nov-20236.6 KiB18879

verifier.cppD22-Nov-202318.2 KiB555358

verifier.hD22-Nov-20232.2 KiB7742

wear_touch.cppD22-Nov-20234.5 KiB178131

wear_touch.hD22-Nov-20231.4 KiB5930

wear_ui.cppD22-Nov-202312.3 KiB417322

wear_ui.hD22-Nov-20232.3 KiB8639

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