Device encryption fails on my device running CAF kernel roms (Sultan's CM12.1 and CM13, and XenonHD AOSP 12.1). This appears to work on other people's devices. All roms run Sultan's CAF version (https://github.com/sultanxda/android_kernel_oneplus_msm8974).
Full logcat entry at https://gist.github.com/neilw4/05033ede5e9065876c8b relevant part:
- E/QSEECOMAPI: Error::send command ioctl failed. ret = -1, errno = 22
- Not sure where this comes from. errno 22 is EINVAL Invalid Argument.
- E/QCOMKeyMaster: Generate key command failed resp->status = -1 ret =-1
- Logging statement at CM android_hardware_qcom_keymaster keymaster_qcom.cpp#L375
- Caused by error in call CM android_hardware_qcom_keymaster keymaster_qcom.cpp#L367
- Calling [Sultan Kernel qseecom.c#L1538](https://github.com/sultanxda/android_ker