Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encryption: try wrapped key also for device without metadata support
Change-Id: I8b58e45ec0d42470226083e8003dcd8152a91af1
- Loading branch information
9bf7335
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit causes an error in TWRP even when /data decrypts successfully on an FDE device. Overriding the prop in the device tree doesn't help either.
9bf7335
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which error?
9bf7335
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the device is not encrypted, you get the "Unable to decrypt FBE device" error message.
9bf7335
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, but it's not a problem, it's just an error that people without an ecrypted device will get, maybe we can pass it from error to info, so it will be readable in recovery.log but not in the device log
9bf7335
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would do the job - assuming that the issue is that the device is not encrypted, rather than the case of an encrypted device for which decryption attempts have failed.
9bf7335
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the decryption fails the user will get a lot of more errors (first of all /data mount error). This is the commit i thought:
https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/36234/
9bf7335
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that commit will be quite fine.
9bf7335
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works. Thanks.