vidit wroteI am using Android M (Developer Preview)
You may have more luck if you inform the
Developers of this problem.
FYI this is true:
- RSA private keys cannot be used with cipher.ENCRYPT_MODE. Only RSA public key supported for this mode
While it is possible the developers made a critical error it is also possible you are using the wrong keys.