commit | 6faf0265c9b58db2c15b53f6d29025629d52f882 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Thu Jun 09 14:09:39 2016 -0700 |
committer | Yabin Cui <yabinc@google.com> | Mon Jun 20 18:18:02 2016 -0700 |
tree | fc2e067205a986071615f936e8ff7040e01520f5 | |
parent | dc1393d09bcc09ae246cd46b2248d9401605d0f5 [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. Bug: 29159185 Change-Id: I186691bab1928d3dc036bc5542abd64a81bc2168
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