Hello,
I had a hard time setting up K9 mail with openkeychain on MIUI android ROM.
I was able to go to the “general settings” and select the openkeychain app as the default application for encryption. The problem was when I selected a specific encryption/decryption key for my email account I clicked several times in the option “My key” but nothing happened.
Turns out it is necessary to disable battery optimizations for openkeychain and allow to run it on the background. If you have MIUI, do the following to solve this problem:
- Go to the “Security” application provided by MIUI.
- Select the option “Manage apps”
- Search for openkeychain and click on it.
- Select “Battery saver”
- Select the option “No restrictions”
If it still does not work do the following:
- In the openkeychain manager app menu, select “Other permissions”
- Select both “Display pop-up windows while running in the background” & “Permanent notification”
- Go back to the main menu again and select “App permissions”
- Allow the storage permission.
If it still does not work, do the above steps for the K9 mail application as well.