commit | ddb63e27f2cdba7ab3757abdc12a34cc02095345 | [log] [tgz] |
---|---|---|
author | Ethan Yonker <dees_troy@teamw.in> | Thu Jan 19 14:01:57 2017 -0600 |
committer | Ethan Yonker <dees_troy@teamw.in> | Wed Mar 01 15:56:47 2017 -0600 |
tree | bec2a6f8f18ee1f77ad568c8da76cc419b5ff7ca | |
parent | a9dd9f03743cb0b1f8694fabffe7a490b337c11e [diff] |
Timeout for decrypt Sometimes, usually because of proprietary binaries related to keymaster, decrypt will hang waiting for the keymaster to initialize forever. This patch enables a timeout so that we don't get stuck trying to decrypt forever. A timeout is especially important when dealing with the default password because the user has no option to cancel when TWRP tries to decrypt. NOTE: This patch only adds a timeout for FDE. FBE will require some special handling because we need access to some static data and that data is not available across a fork. Special thanks to nkk71 for cleaning up some issues in my patch set. Change-Id: Iccf2fe769ac27a7dcd6bfebfe7d2e9eddd034308
Team Win Recovery Project (TWRP)
You can find a compiling guide here.