commit | 90edd2e867b238e71ee198e3460e289cd7dee54c | [log] [tgz] |
---|---|---|
author | Peter Cai <peter@typeblog.net> | Thu May 23 16:32:22 2019 +0800 |
committer | big biff <bigbiff@teamw.in> | Sun Sep 01 19:33:30 2019 +0200 |
tree | 3febcf7620a3ee3bb2043d91c981f9e7a1b635ff | |
parent | 69ab4a60005783e04c1f416708cac1ba4dee07cd [diff] |
ext4crypt: support wrappedkey for FBE Qualcomm devices use a special `wrappedkey` mode for FBE. This is ported from CAF https://source.codeaurora.org/quic/la/platform/system/vold/commit/?h=LA.UM.7.8.r4-01000-SDM710.0&id=9229262d893a8592f7bc1b4e8a8dab7aad8df68c, originally by folks at Mokee for vold https://mokeedev.review/c/MoKee/android_system_vold/+/34102. This patch ports the above changes to `ext4crypt`, which we can use in recovery. Note that since we do not have `fs_mgr` in the recovery, we cannot read the `wrappedkey` flag from fstab. Instead, similar to `fbe.contents`, we use a special property `fbe.data.wrappedkey` to indicate support for wrappedkey mode. Devices that need to use this should set this property to `true` to activate corresponding code. Change-Id: I79c2855d577156670b45c10c7c7b1fcd9fece8d9
Team Win Recovery Project (TWRP)
You can find a compiling guide here.