Home | History | Annotate | only in /bootable/recovery
Up to higher level directory
NameDateSize
.clang-format06-Dec-2017334
adb_install.cpp06-Dec-20174.3K
adb_install.h06-Dec-2017740
Android.bp06-Dec-201755
Android.mk06-Dec-20176.8K
applypatch/06-Dec-2017
asn1_decoder.cpp06-Dec-20173.6K
asn1_decoder.h06-Dec-20171.7K
boot_control/06-Dec-2017
bootloader.h06-Dec-2017775
bootloader_message/06-Dec-2017
CleanSpec.mk06-Dec-20172.4K
common.h06-Dec-20171.2K
default_device.cpp06-Dec-2017734
device.cpp06-Dec-20172.3K
device.h06-Dec-20174.2K
edify/06-Dec-2017
error_code.h06-Dec-20171.8K
etc/06-Dec-2017
fonts/06-Dec-2017
fuse_sdcard_provider.cpp06-Dec-20172.4K
fuse_sdcard_provider.h06-Dec-2017738
fuse_sideload.cpp06-Dec-201716.7K
fuse_sideload.h06-Dec-20171.4K
install.cpp06-Dec-201725.2K
install.h06-Dec-20171.7K
interlace-frames.py06-Dec-20173.5K
minadbd/06-Dec-2017
minui/06-Dec-2017
mounts.cpp06-Dec-20172.3K
mounts.h06-Dec-2017847
NOTICE06-Dec-201710.4K
otafault/06-Dec-2017
otautil/06-Dec-2017
OWNERS06-Dec-201763
print_sha1.h06-Dec-20171.4K
private/06-Dec-2017
README.md06-Dec-20171.6K
recovery-persist.cpp06-Dec-20175.1K
recovery-persist.rc06-Dec-2017116
recovery-refresh.cpp06-Dec-20172.6K
recovery-refresh.rc06-Dec-201765
recovery.cpp06-Dec-201756.1K
res-560dpi/06-Dec-2017
res-hdpi/06-Dec-2017
res-mdpi/06-Dec-2017
res-xhdpi/06-Dec-2017
res-xxhdpi/06-Dec-2017
res-xxxhdpi/06-Dec-2017
roots.cpp06-Dec-201711.3K
roots.h06-Dec-20171.9K
rotate_logs.cpp06-Dec-20173.7K
rotate_logs.h06-Dec-20171.4K
screen_ui.cpp06-Dec-201724.6K
screen_ui.h06-Dec-20175.5K
stub_ui.h06-Dec-20171.8K
tests/06-Dec-2017
tools/06-Dec-2017
ui.cpp06-Dec-201719K
ui.h06-Dec-20177K
uncrypt/06-Dec-2017
update_verifier/06-Dec-2017
updater/06-Dec-2017
verifier.cpp06-Dec-201717.8K
verifier.h06-Dec-20172.2K
vr_device.cpp06-Dec-2017729
vr_ui.cpp06-Dec-20171.2K
vr_ui.h06-Dec-20171.1K
wear_device.cpp06-Dec-2017731
wear_ui.cpp06-Dec-201711.3K
wear_ui.h06-Dec-20172.2K

README.md

      1 The Recovery Image
      2 ==================
      3 
      4 Quick 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 
     14 Running 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 
     31 Running 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
     45 image 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