commit | fd99a318fe630b49ba35f9a19a1866e8b1a42b7e | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Thu Jun 09 14:09:39 2016 -0700 |
committer | Tao Bao <tbao@google.com> | Wed Oct 19 11:19:15 2016 -0700 |
tree | 53388e66db91793598030067dea27790a7f2c0de | |
parent | 06603c76c5c2424a6e6fc11326856a75e28bb616 [diff] |
Verify wipe package when wiping A/B device in recovery. To increase the security of wiping A/B devices, let uncrypt write wipe package in misc partition. Then recovery verifies the wipe package before wiping the device. Based on the original cherrypick, this CL also has additional changes to address the LOG statements and libziparchive changes. Bug: 29159185 Test: Build and boot into recovery. Change-Id: I186691bab1928d3dc036bc5542abd64a81bc2168 (cherry picked from commit 6faf0265c9b58db2c15b53f6d29025629d52f882)
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
# 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