summaryrefslogtreecommitdiff
path: root/init/interface_utils.cpp
diff options
context:
space:
mode:
authorPaul Lawrence <paullawrence@google.com>2019-06-25 14:36:52 -0700
committerPaul Lawrence <paullawrence@google.com>2019-06-26 15:09:07 -0700
commit323959ea2797fbca23f3ce454de7d2597728dc39 (patch)
treef579bb9381e698826ef0c3ca388c561c712e70e3 /init/interface_utils.cpp
parentc0349199db745ee53e8d1133ddfce57fccc69cc7 (diff)
Make ext4 userdata checkpoints work with metadata encryption
When both ext4 user data checkpoints and metadata encryption are enabled, we are creating two stacked dm devices. This had not been properly thought through or debugged. Test: Enable metadata encryption on taimen (add keydirectory=/metadata/vold/metadata_encryption to flags for userdata in fstab.hardware) Unfortunately metadata is not wiped by fastboot -w, so it is necessary to rm metadata/vold -rf whenever you wipe data. fastboot flashall -w works fastboot reboot -w works A normal boot works Disable checkpoint commits with setprop persist.vold.dont_commit_checkpoint 1 vdc checkpoint startCheckpoint 10 adb reboot wait for device to fully boot then adb reboot Wait for device to fully boot then adb logcat -d | grep Checkpoint shows the rollback in the logs This tests encryption on top of checkpoints with commit, encryption without checkpoints, and rollback, which seems to be the key cases. Bug: 135905679 Change-Id: I24387a2943dce28b918c34894f24911b20429be7
Diffstat (limited to 'init/interface_utils.cpp')
0 files changed, 0 insertions, 0 deletions