{
  "api_version": "1.0.0",
  "slug": "kyocera-softkey-api-gemini-opencode",
  "url": "https://reversedwithai.com/p/kyocera-softkey-api-gemini-opencode",
  "markdown_url": "https://reversedwithai.com/p/kyocera-softkey-api-gemini-opencode.md",
  "json_url": "https://reversedwithai.com/p/kyocera-softkey-api-gemini-opencode.json",
  "title": "Recovered a hidden Kyocera flip-phone softkey API with Gemini 3 Flash in OpenCode",
  "tagline": "A hidden flip-phone API recovered for about five cents.",
  "summary": "Gemini read decompiled Smali from Kyocera's framework and rebuilt the softkey guide API as Java, which was used to fix a softkey quirk in the author's podcast app. The run cost about 47K tokens (~$0.05).",
  "target": {
    "name": "Kyocera DuraXV Extreme softkey framework",
    "type": "app",
    "type_label": "Apps"
  },
  "platform": "Android",
  "models": [
    "Gemini 3 Flash Preview"
  ],
  "tools": [
    "OpenCode",
    "Apktool",
    "adb"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": null,
  "cost": "About $0.05 (47,573 tokens)",
  "license": null,
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": "yes",
    "independently_verified": null
  },
  "author": {
    "name": "Tom Barrasso",
    "url": "https://barrasso.me"
  },
  "sources": {
    "repository": null,
    "writeup": "https://barrasso.me/posts/2026-01-11-android-reverse-engineering-with-opencode/",
    "discussions": [],
    "all": [
      "https://barrasso.me/posts/2026-01-11-android-reverse-engineering-with-opencode/"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/kyocera-softkey-api-gemini-opencode.webp",
    "credit": "barrasso.me"
  },
  "commit_history": null,
  "added_at": "2026-10-14T00:00:40+00:00",
  "updated_at": "2026-10-14T00:00:40+00:00",
  "sources_reviewed_at": "2026-10-14T00:00:40+00:00",
  "reviewed_by": "editor",
  "human_notes": "The author enabled developer options, pulled and disassembled the APKs, grepped the Smali to pick the candidate class, and tested on real phones. Reconstructing the listener method took extra searching after the first pass.",
  "reproduce": null,
  "body_md": "Tom Barrasso used Gemini 3 Flash Preview inside OpenCode to rebuild a hidden softkey API from decompiled Smali on a Kyocera DuraXV Extreme E4810 flip phone. The model reconstructed the `KCfpSoftkeyGuide` class as Java in a few seconds, using 47,573 tokens (about $0.05), and Barrasso used the API to fix softkey behaviour in the PodLP podcast app.\n\n### How it was done\n\nBarrasso enabled developer options, listed installed packages with `adb shell cmd package list packages`, and pulled the likely APKs with a small shell script. Apktool disassembled them to Smali. Barrasso grepped the Smali for interfaces of interest and found that the Voice Recognition app's `TopHelpActivity` calls into `jp/kyocera/kcfp/util/KCfpSoftkeyGuide`.\n\nBarrasso then asked OpenCode to reassemble that activity and reconstruct the APIs it calls in the `jp.kyocera.kcfp` package. The agent globbed for the related Smali files, read them, and wrote a Java version of the activity plus reconstructed `KCfpSoftkeyGuide` and `KCfpWidgetUtil` interfaces. Barrasso says almost no prompt engineering was needed.\n\n### Results\n\nAfter more searching, Barrasso reconstructed the full API, including `setSoftkeyEventListener` and its listener. Before the change, pressing the physical volume keys made the softkey bar appear and stay visible; after integration the app no longer had that quirk. Barrasso notes that the API had already been documented in a Russian post on r/flipphones. The post also covers the Sonim XP3+, where softkeys are set through an `android.intent.action.CHANGE_NAV_BAR` intent. Barrasso concludes that Gemini in OpenCode is much faster than reconstructing hidden APIs by hand, though testing on physical devices is still necessary.",
  "ai_use_excerpts": null
}
