Skip to content

Fix false missing key error for unencrypted Kia protocols (V1, etc.)#49

Merged
limbo111111 merged 1 commit into
mainfrom
fix-kia-v1-key-status-4738419145484720728
Jun 16, 2026
Merged

Fix false missing key error for unencrypted Kia protocols (V1, etc.)#49
limbo111111 merged 1 commit into
mainfrom
fix-kia-v1-key-status-4738419145484720728

Conversation

@limbo111111

Copy link
Copy Markdown
Owner

The Java_com_rfcut_protocols_KatProtocols_getKeeloqKeyStatus JNI function was incorrectly flagging all protocols starting with "Kia" as encrypted, requiring a keystore key. This caused the UI to show a "Kein Manufacturer-Key bekannt" error for unencrypted protocols like Kia V1.

This PR adds a targeted check to exclude the specific unencrypted Kia protocols (V0, V1, V2, and V7) from the KeeLoq check, returning 0 (no key required) so they function correctly.


PR created automatically by Jules for task 4738419145484720728 started by @limbo111111

Kia protocols V0, V1, V2, and V7 are unencrypted and do not use a manufacturer key. The `Java_com_rfcut_protocols_KatProtocols_getKeeloqKeyStatus` function previously categorized all "Kia" protocols as part of the KeeLoq family, which caused false "missing key" errors for these unencrypted protocols.

This change adds an early return of `0` for these specific unencrypted Kia protocols, which signals to the application that no key is needed and allows the control pad and replay functionalities to work directly.

Co-authored-by: limbo111111 <228673403+limbo111111@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@limbo111111 limbo111111 merged commit 9b08f64 into main Jun 16, 2026
1 check passed
@limbo111111 limbo111111 deleted the fix-kia-v1-key-status-4738419145484720728 branch June 16, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant