• Home
Name Date Size #Lines LOC

..--

applypatch/03-May-2024-2,9861,971

boot_control/03-May-2024-437287

bootloader_message/03-May-2024-495291

edify/03-May-2024-1,130774

etc/03-May-2024-10479

fonts/03-May-2024-10179

minadbd/03-May-2024-404210

minui/03-May-2024-2,5421,842

otafault/03-May-2024-521303

otautil/03-May-2024-670412

private/03-May-2024-327

res-560dpi/images/03-May-2024-

res-hdpi/images/03-May-2024-

res-mdpi/images/03-May-2024-

res-xhdpi/images/03-May-2024-

res-xxhdpi/images/03-May-2024-

res-xxxhdpi/images/03-May-2024-

tests/03-May-2024-4,2423,027

tools/03-May-2024-1,6071,251

uncrypt/03-May-2024-739510

update_verifier/03-May-2024-457282

updater/03-May-2024-3,5932,494

.clang-formatD03-May-2024334 1613

Android.bpD03-May-202455 54

Android.mkD03-May-20246.8 KiB269192

CleanSpec.mkD03-May-20242.4 KiB522

NOTICED03-May-202410.4 KiB191158

OWNERSD03-May-202463 43

README.mdD03-May-20241.6 KiB5036

adb_install.cppD03-May-20244.3 KiB14497

adb_install.hD03-May-2024740 234

asn1_decoder.cppD03-May-20243.6 KiB159125

asn1_decoder.hD03-May-20241.7 KiB5632

bootloader.hD03-May-2024775 191

common.hD03-May-20241.2 KiB4917

default_device.cppD03-May-2024734 235

device.cppD03-May-20242.3 KiB8758

device.hD03-May-20244.2 KiB11042

error_code.hD03-May-20241.8 KiB7453

fuse_sdcard_provider.cppD03-May-20242.4 KiB8652

fuse_sdcard_provider.hD03-May-2024738 234

fuse_sideload.cppD03-May-202416.7 KiB530351

fuse_sideload.hD03-May-20241.4 KiB3914

install.cppD03-May-202425.2 KiB716527

install.hD03-May-20241.7 KiB4412

interlace-frames.pyD03-May-20243.5 KiB11569

mounts.cppD03-May-20242.3 KiB8354

mounts.hD03-May-2024847 297

print_sha1.hD03-May-20241.4 KiB4824

recovery-persist.cppD03-May-20245.1 KiB17197

recovery-persist.rcD03-May-2024116 43

recovery-refresh.cppD03-May-20242.6 KiB7224

recovery-refresh.rcD03-May-202465 32

recovery.cppD03-May-202456.1 KiB1,6521,215

roots.cppD03-May-202411.3 KiB354281

roots.hD03-May-20241.9 KiB5512

rotate_logs.cppD03-May-20243.7 KiB11680

rotate_logs.hD03-May-20241.4 KiB4518

screen_ui.cppD03-May-202424.6 KiB844668

screen_ui.hD03-May-20245.5 KiB197110

stub_ui.hD03-May-20241.8 KiB6635

ui.cppD03-May-202419 KiB597435

ui.hD03-May-20247 KiB20594

verifier.cppD03-May-202417.8 KiB554358

verifier.hD03-May-20242.2 KiB7742

vr_device.cppD03-May-2024729 245

vr_ui.cppD03-May-20241.2 KiB3615

vr_ui.hD03-May-20241.1 KiB3712

wear_device.cppD03-May-2024731 245

wear_ui.cppD03-May-202411.3 KiB402304

wear_ui.hD03-May-20242.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