You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
4 years ago | |
|---|---|---|
| .. | ||
| applypatch | 4 years ago | |
| boot_control | 4 years ago | |
| bootloader_message | 4 years ago | |
| edify | 4 years ago | |
| etc | 4 years ago | |
| fonts | 4 years ago | |
| minadbd | 4 years ago | |
| minui | 4 years ago | |
| otafault | 4 years ago | |
| otautil | 4 years ago | |
| private | 4 years ago | |
| res-hdpi/images | 4 years ago | |
| res-ldpi/images | 4 years ago | |
| res-mdpi/images | 4 years ago | |
| res-xhdpi/images | 4 years ago | |
| res-xxhdpi/images | 4 years ago | |
| res-xxxhdpi/images | 4 years ago | |
| rock | 4 years ago | |
| tests | 4 years ago | |
| tools | 4 years ago | |
| uncrypt | 4 years ago | |
| update_verifier | 4 years ago | |
| updater | 4 years ago | |
| .clang-format | 4 years ago | |
| Android.bp | 4 years ago | |
| Android.mk | 4 years ago | |
| CleanSpec.mk | 4 years ago | |
| NOTICE | 4 years ago | |
| OWNERS | 4 years ago | |
| README.md | 4 years ago | |
| adb_install.cpp | 4 years ago | |
| adb_install.h | 4 years ago | |
| asn1_decoder.cpp | 4 years ago | |
| asn1_decoder.h | 4 years ago | |
| bootloader.h | 4 years ago | |
| common.h | 4 years ago | |
| default_device.cpp | 4 years ago | |
| device.cpp | 4 years ago | |
| device.h | 4 years ago | |
| error_code.h | 4 years ago | |
| freeme_recovery.cpp | 4 years ago | |
| fuse_sdcard_provider.cpp | 4 years ago | |
| fuse_sdcard_provider.h | 4 years ago | |
| fuse_sideload.cpp | 4 years ago | |
| fuse_sideload.h | 4 years ago | |
| install.cpp | 4 years ago | |
| install.h | 4 years ago | |
| interlace-frames.py | 4 years ago | |
| libadupsfota.a | 4 years ago | |
| libadupsfota_64.a | 4 years ago | |
| mounts.cpp | 4 years ago | |
| mounts.h | 4 years ago | |
| mt_common.h | 4 years ago | |
| mt_common.mk | 4 years ago | |
| mt_install.cpp | 4 years ago | |
| mt_install.h | 4 years ago | |
| mt_recovery.cpp | 4 years ago | |
| mt_recovery.h | 4 years ago | |
| mt_recovery.mk | 4 years ago | |
| mt_roots.cpp | 4 years ago | |
| mt_roots.h | 4 years ago | |
| print_sha1.h | 4 years ago | |
| recovery-persist.cpp | 4 years ago | |
| recovery-persist.rc | 4 years ago | |
| recovery-refresh.cpp | 4 years ago | |
| recovery-refresh.rc | 4 years ago | |
| recovery.cpp | 4 years ago | |
| res-560dpi | 4 years ago | |
| roots.cpp | 4 years ago | |
| roots.h | 4 years ago | |
| rotate_logs.cpp | 4 years ago | |
| rotate_logs.h | 4 years ago | |
| screen_ui.cpp | 4 years ago | |
| screen_ui.h | 4 years ago | |
| stub_ui.h | 4 years ago | |
| ui.cpp | 4 years ago | |
| ui.h | 4 years ago | |
| verifier.cpp | 4 years ago | |
| verifier.h | 4 years ago | |
| vr_device.cpp | 4 years ago | |
| vr_ui.cpp | 4 years ago | |
| vr_ui.h | 4 years ago | |
| wear_device.cpp | 4 years ago | |
| wear_ui.cpp | 4 years ago | |
| wear_ui.h | 4 years ago | |
README.md
The Recovery Image
Quick turn-around testing
mm -j && m ramdisk-nodeps && m recoveryimage-nodeps
# To boot into the new recovery image
# without flashing the recovery partition:
adb reboot bootloader
fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
Running the tests
# After setting up environment and lunch.
mmma -j bootable/recovery
# Running the tests on device.
adb root
adb sync data
# 32-bit device
adb shell /data/nativetest/recovery_unit_test/recovery_unit_test
adb shell /data/nativetest/recovery_component_test/recovery_component_test
# Or 64-bit device
adb shell /data/nativetest64/recovery_unit_test/recovery_unit_test
adb shell /data/nativetest64/recovery_component_test/recovery_component_test
Running the manual tests
recovery-refresh and recovery-persist executables exist only on systems without
/cache partition. And we need to follow special steps to run tests for them.
-
Execute the test on an A/B device first. The test should fail but it will log some contents to pmsg.
-
Reboot the device immediately and run the test again. The test should save the contents of pmsg buffer into /data/misc/recovery/inject.txt. Test will pass if this file has expected contents.
ResourceTest validates whether the png files are qualified as background text
image under recovery.
1. `adb sync data` to make sure the test-dir has the images to test.
2. The test will automatically pickup and verify all `_text.png` files in
the test dir.