• Home
Name Date Size #Lines LOC

..--

applypatch/03-May-2024-3,4382,250

bootloader_message/03-May-2024-482269

edify/03-May-2024-1,127772

etc/03-May-2024-10479

fonts/03-May-2024-10179

minadbd/03-May-2024-401220

minui/03-May-2024-2,5151,818

otafault/03-May-2024-502285

otautil/03-May-2024-862492

private/03-May-2024-286

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,0972,864

tools/03-May-2024-1,5871,233

uncrypt/03-May-2024-739510

update_verifier/03-May-2024-315208

updater/03-May-2024-3,4412,380

.clang-formatD03-May-2024334 1613

Android.mkD03-May-20244.9 KiB199144

CleanSpec.mkD03-May-20242.4 KiB522

NOTICED03-May-202410.4 KiB191158

README.mdD03-May-20241.6 KiB5036

adb_install.cppD03-May-20244.2 KiB13893

adb_install.hD03-May-2024774 255

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.7 KiB7251

fuse_sdcard_provider.cppD03-May-20242.4 KiB8652

fuse_sdcard_provider.hD03-May-2024738 234

fuse_sideload.cppD03-May-202417 KiB526349

fuse_sideload.hD03-May-20241.4 KiB3914

install.cppD03-May-202425.8 KiB724532

install.hD03-May-20241.7 KiB4512

interlace-frames.pyD03-May-20243.5 KiB11569

mounts.cppD03-May-20242.6 KiB9059

mounts.hD03-May-2024961 339

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-202455.6 KiB1,6461,215

roots.cppD03-May-20249 KiB286226

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.8 KiB809636

screen_ui.hD03-May-20244.7 KiB17498

stub_ui.hD03-May-20241.8 KiB6635

ui.cppD03-May-202413.8 KiB446340

ui.hD03-May-20246.6 KiB18879

verifier.cppD03-May-202418.2 KiB555358

verifier.hD03-May-20242.2 KiB7742

wear_touch.cppD03-May-20244.5 KiB178131

wear_touch.hD03-May-20241.4 KiB5930

wear_ui.cppD03-May-202412.3 KiB417322

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