[Demonstration 1]

[Buggy Method]
public String encryptPassword(String plainTextPassword) throws EncryptionFailedException {
    try {
        KeyStore keyStore = KeyStore.getInstance(SecurityConstants.KEYSTORE_PROVIDER_ANDROID_KEYSTORE);
        keyStore.load(null);
        KeyStore.Entry entry = keyStore.getEntry(mAlias, null);
        KeyStore.PrivateKeyEntry privateKeyEntry = (KeyStore.PrivateKeyEntry) entry;
        RSAPublicKey publicKey = (RSAPublicKey) privateKeyEntry.getCertificate().getPublicKey();
        Cipher input;
        input = Cipher.getInstance("RSA/ECB/PKCS1Padding", "AndroidOpenSSL");
        input.init(Cipher.ENCRYPT_MODE, publicKey);
        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
        CipherOutputStream cipherOutputStream = new CipherOutputStream(outputStream, input);
        cipherOutputStream.write(plainTextPassword.getBytes("UTF-8"));
        cipherOutputStream.close();
        byte[] vals = outputStream.toByteArray();
        return Base64.encodeToString(vals, Base64.DEFAULT);
    } catch (Exception e) {
        throw new EncryptionFailedException(e);
    }
}

[Buggy Hunk]
input = Cipher.getInstance("RSA/ECB/PKCS1Padding", "AndroidOpenSSL");

[Patch]
input = Cipher.getInstance("RSA/ECB/PKCS1Padding");

[Demonstration 2]

[Buggy Method]
private static String labelToPropertyName(String label) {
    return "X-" + label.replace(" ", "_").toUpperCase();
}

[Buggy Hunk]
private static String labelToPropertyName(String label) {

[Patch]
public static String labelToPropertyName(String label) {

[Demonstration 3]

[Buggy Method]
@Override
protected void onPostExecute(String status) {
    delegate.processFinish(status);
}

[Buggy Hunk]
delegate.processFinish(status);

[Patch]
delegate.asyncTaskFinish(status);