- move aura_bt_gtk.py, aura_sim.py and test_aura_bt_gtk.py from tools/ to a new top-level aura-gtk/ folder (paths updated in docs/14 and the top-level README) - add native SVG screenshot export: window snapshot -> GskRenderNode -> GskRenderNode.draw() on a cairo SVG surface, clipped to libadwaita's 15 px window radius while floating and wrapped in an SVG drop-shadow filter; available from the menu (Ctrl+Shift+S) and via --screenshot FILE.svg --page speaker|wifi|advanced - add screenshots.sh (floats the window on sway, renders all tabs against the simulator) and the resulting screenshots/*.svg - add aura-gtk/README.md: features, requirements, usage, firmware behaviour, internals, simulator/tests, screenshots, troubleshooting - require libadwaita >= 1.6 (Adw.Spinner, Adw.ButtonRow) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tools
Firmware
patch_firmware.py— region patcher (US/EU/JP), from https://github.com/tobeehh/hk-aura-firmware-patcher, MIT. PatchesCountryCodeat0x3233Eand recalculates the segment 1 checksum.aura_dump.py— connects to the BridgeCo telnet shell on port 8000, runsfburn listFlashAddrorfburn rd ..., and receives the flash image over XMODEM. Untested against hardware.ft2232hl-swd.cfg— OpenOCD 0.12+ FTDI SWD interface config for the FT2232HL V3.6 board (Channel B with jumperJ6closed;SWCLKonCN4pin 9 /BD0,SWDIOonCN4pin 5 /BD1). Used with-f target/stm32f1x.cfgto probe and dump the Aura'sSTM32F105RC(U14). Full wiring and commands:../docs/04-backup-and-flash.md#stm32f105rc-swd-dump-ft2232hl.aura_swd.py— live poking of the running MCU over SWD (OpenOCD TCL port 6666, attached without halting). Dumps the audio routing GPIOs, togglesAMP_MUTE, and reads the AK4117 (SPI) and AK7742 (I2C2) registers by calling the stock firmware's own bus routines.ampdspchecks whether the AK7742 answers on I2C with the amps on and with them muted. See../docs/05-status.md#amps-on-the-ak7742-stops-answering-swd-2026-11-28.
openocd -f ft2232hl-swd.cfg -f target/stm32f1x.cfg -c "adapter speed 1000" -c init &
python3 aura_swd.py gpio | amp on|off | ak4117 | ak7742 [reg...] | ampdsp | i2creset
ghidra/— headless Ghidra scripts for segment 1 (STM32, Thumb-2 at0x0800C000).Setup.javasets Thumb mode and seeds functions from the vector table andpush {..., lr}prologues.Dump.javahas three modes:refs <out> <regex>(functions that reference matching strings),callers <out> <addr>...anddec <out> <addr>...(decompile).
dd if=../firmware/HK_AURA_US_original.bin of=seg1.bin bs=1 skip=$((0x70)) count=$((0x323D4))
analyzeHeadless . proj -import seg1.bin -processor ARM:LE:32:Cortex -loader BinaryLoader \
-loader-baseAddr 0x0800C000
analyzeHeadless . proj -process seg1.bin -scriptPath ghidra -postScript Setup.java -noanalysis
analyzeHeadless . proj -process seg1.bin -scriptPath ghidra -readOnly -noanalysis \
-postScript Dump.java dec out.c 0x08014782
Bluetooth control & provisioning
aura_bt.py— fullHarmanSppCLI to query, display (--jsonsupported), and configure all known speaker parameters over RFCOMM channel 2 (SPP): status summary, volume, mute, bass, EQ mode, device name, power toggle, source shadow byte, Wi-Fi scan/IP/join/share, raw hex, andreconnect(resets the BT link if channel 1 / Apple iAP1 was touched).
python3 tools/aura_bt.py # full status summary (or --json)
python3 tools/aura_bt.py volume 35 # get/set volume (0..100)
python3 tools/aura_bt.py mute on|off|toggle # mute control
python3 tools/aura_bt.py bass 60 # get/set bass (0..100)
python3 tools/aura_bt.py eq normal|wide # get/set EQ mode
python3 tools/aura_bt.py name "Living Room" # get/set device name
python3 tools/aura_bt.py power [toggle] # get/toggle power
python3 tools/aura_bt.py wifi scan|ip|join # Wi-Fi scan, IP/SSID, or provisioning
aura_wifi_bt.py— earlier Linux reimplementation of the app's "Easy setup (through BT)" plus raw/framed command probing. Protocol documented in../docs/06-bt-protocol.md.
python3 aura_wifi_bt.py --list
python3 aura_wifi_bt.py --ssid MyNet --password hunter2
python3 aura_wifi_bt.py --probe-all # safe read-only command probe
python3 aura_wifi_bt.py --probe-all --include-state # also setters with safe values
python3 aura_wifi_bt.py --framed-listen 10 # read AA/BB framed MCU logs
python3 aura_wifi_bt.py --framed-send "00 01" # send a command in an AA frame
python3 aura_wifi_bt.py --framed-probe-all # framed safe-command probe
Requires a paired speaker (HK Aura BT) and BlueZ; run with sudo if RFCOMM is denied.
Defaults to RFCOMM channel 2 (SPP) when sdptool is unavailable — do not connect to
channel 1 (Apple iAP1), which latches the MCU's BT slot into iAP mode until a full BT disconnect.
APK
apk/ contains the scripts used to rebuild Harman Kardon Remote 4.5:
| Script | Purpose |
|---|---|
stub_nflc.py |
converts the 152 native NFLC methods to no-op Java stubs and empties the <clinit> loadLibrary calls |
patch_service_intents.py |
adds setPackage("com.harman.hkremote") to the six implicit MusicService intents |
patch_manifest_targetsdk.py |
binary AXML patch of targetSdkVersion (used for v1/v2; v3 uses apktool) |
repack_apk.py |
rebuilds the APK zip without lib/ and old signatures, inserting a new manifest and dex |
Full pipeline and rationale: ../docs/01-app-repack.md.
The resulting smali diff is in ../patches/harman-changes.diff, and the added helper class is
../patches/PermHelper.smali.
External tools needed: baksmali/smali 2.5.2, apktool 2.9.3 (manifest re-encode),
Android build-tools zipalign + apksigner, JDK 17+.