<!-- Canonical page: https://reversedwithai.com/p/robo-cao-toy-ble-protocol-claude-code -->
Canonical page: https://reversedwithai.com/p/robo-cao-toy-ble-protocol-claude-code

# Reverse engineered a toy robot dog's Bluetooth protocol from its APK and rebuilt the app, with Claude Code

> A toy's Bluetooth protocol read from bytecode, and a safer app.

Assuero Morais audited the APK of a toy robot dog bought for a son, read its Bluetooth protocol from Dalvik bytecode and rebuilt a privacy-friendly app in one day with Claude Code.

## Key facts

- Target: Toy robot dog (FansiKids / UCC Life)
- Category: Firmware and hardware
- Platform: Android, Bluetooth LE
- Models: Claude
- Tools: Claude Code, dexdump, Kotlin, Vosk
- Outcome: Works
- License: MIT
- Checks: Source available: yes; Repro steps: yes; Real hardware: yes; Verified by others: not reported
- Author: [Assuero Morais](https://github.com/assueromorais)
- Added: 2026-10-17
- Updated: 2026-10-17
- Sources reviewed: 2026-10-17 (editor)

## What was done

Assuero Morais bought a toy robot dog whose box pointed to an APK outside the Play Store. He audited it, reverse engineered its Bluetooth protocol and rebuilt the app from scratch in a single day, pairing with Claude Code. The README is in Portuguese with an English summary.

### How it was done

The audit found a debug build that sent a child's voice to cloud speech services. The protocol came from reading Dalvik bytecode with dexdump, with no decompiler. A Python simulator rebuilt each model's command arrays from the bytecode. The robot does not use a GATT connection. Everything travels in Bluetooth LE advertisements with 11-byte packets, an anti-repeat counter and a checksum, and pairing is a handshake of advertisements. The work covers six models in two protocol families, and button names came from matching icons to command codes. The agent sped up bytecode analysis, implementation and tests, while the author directed the product and privacy decisions.

### Results

The new Kotlin app has no internet permission, recognises voice commands offline with Vosk and has a kids' programming mode, with 52 unit tests. It also fixed a bug in the original app where one step triggered the claw on one model. It was tested on the FansiKids / UCC Life robot dog with claw. The protocol is documented for interoperability, and no code or assets from the original app were reused.

## What the commit history shows

3 of 3 commits in the public repository credit an AI, over 1 day between 2026-10-12 and 2026-10-12. Credited: Claude Opus 5.5 (3).

Measured by this site from public git history.

## Questions about Toy robot dog (FansiKids / UCC Life)

### What is the Toy robot dog (FansiKids / UCC Life) project?

Assuero Morais audited the APK of a toy robot dog bought for a son, read its Bluetooth protocol from Dalvik bytecode and rebuilt a privacy-friendly app in one day with Claude Code. It is listed under Firmware and hardware for Android, Bluetooth LE.

### Which AI model was used on Toy robot dog (FansiKids / UCC Life)?

The entry names Claude. The tools named alongside are Claude Code, dexdump, Kotlin and Vosk.

### Did the AI reverse engineering of Toy robot dog (FansiKids / UCC Life) work?

Its author reports that it works. Checks recorded: source available yes, repro steps yes, real hardware yes.

### Is the source code for Toy robot dog (FansiKids / UCC Life) available?

Yes. The code, patches or tooling are public: https://github.com/assueromorais/robocao-ble-controller. Licence: MIT. The sources give enough steps to reproduce it.

## Sources

- [Repository](https://github.com/assueromorais/robocao-ble-controller)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Assuero Morais (2026). Reverse engineered a toy robot dog's Bluetooth protocol from its APK and rebuilt the app, with Claude Code. Reversed with AI. https://reversedwithai.com/p/robo-cao-toy-ble-protocol-claude-code
