Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 23-Oct-2020 | - | ||||
applypatch/ | H | 23-Oct-2020 | - | |||
boot_control/ | H | 23-Oct-2020 | - | |||
bootloader_message/ | H | 23-Oct-2020 | - | |||
edify/ | H | 23-Oct-2020 | - | |||
etc/ | H | 23-Oct-2020 | - | |||
fonts/ | H | 23-Oct-2020 | - | |||
minadbd/ | H | 23-Oct-2020 | - | |||
minui/ | H | 23-Oct-2020 | - | |||
otafault/ | H | 23-Oct-2020 | - | |||
otautil/ | H | 23-Oct-2020 | - | |||
private/ | H | 23-Oct-2020 | - | |||
res-560dpi/images/ | H | 23-Oct-2020 | - | |||
res-hdpi/images/ | H | 23-Oct-2020 | - | |||
res-mdpi/images/ | H | 23-Oct-2020 | - | |||
res-xhdpi/images/ | H | 23-Oct-2020 | - | |||
res-xxhdpi/images/ | H | 23-Oct-2020 | - | |||
res-xxxhdpi/images/ | H | 23-Oct-2020 | - | |||
tests/ | H | 23-Oct-2020 | - | |||
tools/ | H | 23-Oct-2020 | - | |||
uncrypt/ | H | 23-Oct-2020 | - | |||
update_verifier/ | H | 23-Oct-2020 | - | |||
updater/ | H | 23-Oct-2020 | - | |||
.clang-format | H A D | 23-Oct-2020 | 334 | 16 | 13 | |
Android.bp | H A D | 23-Oct-2020 | 55 | 5 | 4 | |
Android.mk | H A D | 23-Oct-2020 | 6.8 KiB | 269 | 192 | |
CleanSpec.mk | H A D | 23-Oct-2020 | 2.4 KiB | 52 | 2 | |
NOTICE | H A D | 23-Oct-2020 | 10.4 KiB | 191 | 158 | |
OWNERS | H A D | 23-Oct-2020 | 63 | 4 | 3 | |
README.md | H A D | 23-Oct-2020 | 1.6 KiB | 50 | 36 | |
adb_install.cpp | H A D | 23-Oct-2020 | 4.3 KiB | 144 | 97 | |
adb_install.h | H A D | 23-Oct-2020 | 740 | 23 | 4 | |
asn1_decoder.cpp | H A D | 23-Oct-2020 | 3.6 KiB | 159 | 125 | |
asn1_decoder.h | H A D | 23-Oct-2020 | 1.7 KiB | 56 | 32 | |
bootloader.h | H A D | 23-Oct-2020 | 775 | 19 | 1 | |
common.h | H A D | 23-Oct-2020 | 1.2 KiB | 49 | 17 | |
default_device.cpp | H A D | 23-Oct-2020 | 734 | 23 | 5 | |
device.cpp | H A D | 23-Oct-2020 | 2.3 KiB | 87 | 58 | |
device.h | H A D | 23-Oct-2020 | 4.2 KiB | 110 | 42 | |
error_code.h | H A D | 23-Oct-2020 | 1.8 KiB | 74 | 53 | |
fuse_sdcard_provider.cpp | H A D | 23-Oct-2020 | 2.4 KiB | 86 | 52 | |
fuse_sdcard_provider.h | H A D | 23-Oct-2020 | 738 | 23 | 4 | |
fuse_sideload.cpp | H A D | 23-Oct-2020 | 16.7 KiB | 530 | 351 | |
fuse_sideload.h | H A D | 23-Oct-2020 | 1.4 KiB | 39 | 14 | |
install.cpp | H A D | 23-Oct-2020 | 25.2 KiB | 716 | 527 | |
install.h | H A D | 23-Oct-2020 | 1.7 KiB | 44 | 12 | |
interlace-frames.py | H A D | 23-Oct-2020 | 3.5 KiB | 115 | 69 | |
mounts.cpp | H A D | 23-Oct-2020 | 2.3 KiB | 83 | 54 | |
mounts.h | H A D | 23-Oct-2020 | 847 | 29 | 7 | |
print_sha1.h | H A D | 23-Oct-2020 | 1.4 KiB | 48 | 24 | |
recovery-persist.cpp | H A D | 23-Oct-2020 | 5.1 KiB | 171 | 97 | |
recovery-persist.rc | H A D | 23-Oct-2020 | 116 | 4 | 3 | |
recovery-refresh.cpp | H A D | 23-Oct-2020 | 2.6 KiB | 72 | 24 | |
recovery-refresh.rc | H A D | 23-Oct-2020 | 65 | 3 | 2 | |
recovery.cpp | H A D | 23-Oct-2020 | 56.1 KiB | 1,652 | 1,215 | |
roots.cpp | H A D | 23-Oct-2020 | 11.3 KiB | 354 | 281 | |
roots.h | H A D | 23-Oct-2020 | 1.9 KiB | 55 | 12 | |
rotate_logs.cpp | H A D | 23-Oct-2020 | 3.7 KiB | 116 | 80 | |
rotate_logs.h | H A D | 23-Oct-2020 | 1.4 KiB | 45 | 18 | |
screen_ui.cpp | H A D | 23-Oct-2020 | 24.6 KiB | 844 | 668 | |
screen_ui.h | H A D | 23-Oct-2020 | 5.5 KiB | 197 | 110 | |
stub_ui.h | H A D | 23-Oct-2020 | 1.8 KiB | 66 | 35 | |
ui.cpp | H A D | 23-Oct-2020 | 19 KiB | 597 | 435 | |
ui.h | H A D | 23-Oct-2020 | 7 KiB | 205 | 94 | |
verifier.cpp | H A D | 23-Oct-2020 | 17.8 KiB | 554 | 358 | |
verifier.h | H A D | 23-Oct-2020 | 2.2 KiB | 77 | 42 | |
vr_device.cpp | H A D | 23-Oct-2020 | 729 | 24 | 5 | |
vr_ui.cpp | H A D | 23-Oct-2020 | 1.2 KiB | 36 | 15 | |
vr_ui.h | H A D | 23-Oct-2020 | 1.1 KiB | 37 | 12 | |
wear_device.cpp | H A D | 23-Oct-2020 | 731 | 24 | 5 | |
wear_ui.cpp | H A D | 23-Oct-2020 | 11.3 KiB | 402 | 304 | |
wear_ui.h | H A D | 23-Oct-2020 | 2.2 KiB | 80 | 36 |
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