DO NOT MERGE Report uncrypt errors in details
Tianjie Xu authored
Add the error codes for uncrypt and report the failure details in
uncrypt_status.

Test: uncrypt_error logs correctly in last_install
Bug: 31603820
Change-Id: I8e0de845ce1707b6f8f5ae84564c5e93fd5f5ef5
(cherry picked from commit da44cf18)
37d7d67c
Name Last commit Last update
applypatch applypatch: Don't call inflate() when it expects zero-length output.
bootloader_message Fix bootloader_message.
edify Call ioctl before each write on retry
etc Restore labels on /postinstall during recovery.
fonts more font improvements and cleanup
minadbd minadbd: update for adb_thread_create signature change.
minui Fix matches_locale function
minzip resolve merge conflicts of e5d3d15c to nyc-dev
mtdutils Suppress some compiler warnings due to signedness.
otafault Correct caching behavior for should_inject_cache
res-hdpi/images Merge "Update background text for recovery UI" into nyc-dev
res-mdpi/images Merge "Update background text for recovery UI" into nyc-dev
res-xhdpi/images Merge "Update background text for recovery UI" into nyc-dev
res-xxhdpi/images Merge "Update background text for recovery UI" into nyc-dev
res-xxxhdpi/images Merge "Update background text for recovery UI" into nyc-dev
tests Add ability to show "installing security update"
tools Import translations. DO NOT MERGE
uncrypt DO NOT MERGE Report uncrypt errors in details
update_verifier Skip update verification if care_map is not found
updater updater: Fix the broken ReadFileFn.
Android.mk Create bootloader_message static library.
CleanSpec.mk recovery: minui: add adf backend
NOTICE Automated import from //branches/master/...@140824,140824
README.md Refactor existing tests to use gtest
adb_install.cpp Allow recovery to return error codes
adb_install.h
asn1_decoder.cpp
asn1_decoder.h
bootloader.h
common.h
default_device.cpp
device.cpp
device.h
error_code.h
fuse_sdcard_provider.cpp
fuse_sdcard_provider.h
fuse_sideload.cpp
fuse_sideload.h
install.cpp
install.h
interlace-frames.py
print_sha1.h
recovery-persist.cpp
recovery-persist.rc
recovery-refresh.cpp
recovery-refresh.rc
recovery.cpp
res-560dpi
roots.cpp
roots.h
screen_ui.cpp
screen_ui.h
ui.cpp
ui.h
unique_fd.h
verifier.cpp
verifier.h
wear_touch.cpp
wear_touch.h
wear_ui.cpp
wear_ui.h

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