Review only: findings and a checklist, no fixes. Approved fixes land on the
branch as fix(...): ... [rb-android].
| Check | Result |
|---|---|
npm test |
172 passed, 18 files |
npm run lint |
clean |
tsc -b + npm run build |
clean; the browser build is unchanged by this phase |
npm run android:build |
release APK, 3.2 MB |
apksigner verify |
signed with the rpmboss upload key |
B1-B11 were driven by Claude on the maintainer's phone over adb: install, launch, taps, screen dumps and screenshots. Claude cannot hear, so anything about how a recording sounds was the maintainer's. All fifteen confirmed on 2026-09-10.
source=UNPROCESSED rate=16000 deviceClaimsUnprocessed=true. This phone gives the raw path, at the app's own sample rate, so nothing is resampled on the device (AC 4).UNPROCESSED again, so nothing is stuck busy.npm test, lint and the web build all still pass, and nothing in src/ requires Capacitor to be present (AC 10).Run by Claude at the maintainer's standing permission, at high effort. Seven
findings, all fixed in 9c0e64a, and the ones reachable from a phone
re-verified afterwards. The maintainer was away, so fixing all seven was
Claude's call; any of them can be reversed.
C1 ✅ fixed — Capacitor keeps a rejection's message and its code apart, and the plugin put the app's code in the code field while the web side read the message. A denied microphone came back as "Recording failed. Try again." with no hint that a permission was the problem. Confirmed against PluginCall.java and CapacitorException before fixing.
C2 ✅ fixed — pressing Stop while the microphone was still opening left the native recorder running with nobody to end it: the microphone stayed hot and every later take was refused as busy until the app was killed. Verified on the phone in B7 and B8.
C3 ✅ fixed — the capture thread read the plugin's own fields, so tearing a take down raced it, and on activity destroy released the AudioRecord out from under a thread still inside read(). Each take now owns its recorder, its buffer and its own flag, handed to the thread as a final local, and the join is unconditional.
C4 ✅ fixed — a negative read(), which is what a phone call or another app taking the microphone looks like, was ignored, so the loop span a core until the hard stop and then returned a silently truncated take. It ends the take and reports no-audio.
C5 ✅ fixed — org.gradle.java.home pointed at this machine's JDK in a tracked file, so any other clone would fail before the first task. The reviewer suggested local.properties; that is wrong, Gradle does not read it for this, so the requirement is documented in the README instead.
C6 ✅ fixed — the build comment claimed a fresh clone builds, but the Capacitor-generated pieces are not committed. npm run android:sync makes them, and the README says so.
C7 ✅ fixed — the ten second cap was a JS timer, and Android suspends those when the activity stops, so switching apps mid-recording would have held the microphone with an unbounded buffer. The plugin enforces the cap too.
C8 ✅ fixed in 2471aad — reported by the maintainer from the phone: after denying the microphone and dismissing the warning, Play did nothing until the file was loaded again. Pressing Record disposed the player straight away, and a recording that never started never replaced it. Playback is stopped now rather than torn down, and setClip disposes the player when a recording actually arrives. Reproduced in Chrome with getUserMedia stubbed to refuse before fixing, and confirmed by the maintainer on the phone afterwards.
C9 ✅ done at the maintainer's request — the page heading is gone. It was the last place still reading rpm-boss while the app is called RPM Boss, and the launcher, the tab and the app switcher all carry the name anyway. This closes E2 below.
record.ts now picks between the native recorder and the audio worklet by platform. Its signature is unchanged and everything above it is untouched.package.json gained android:sync and android:build.https://mby4m.github.io/legal/rpmboss/, sourced from ~/git/legal/rpmboss/, and linked from that site's index.scripts/apk.sh, scripts/install.sh and scripts/uninstall.sh build, install and remove the app. They find a JDK 21 themselves, check for a phone before spending a build, and say which microphone source to look for afterwards.rpm-bossandroid/ is committed but the Capacitor-generated pieces inside it are not, so the tree is neither fully generated nor fully checked in. This is the normal Capacitor arrangement and the README now documents the sync step, but it is a seam worth knowing about.pcm16ToFloat is covered; the plugin itself is only exercised by hand on a device. An instrumented test would need a device in CI, which this project does not have.UNPROCESSED? Yes, and at 16 kHz. Answered in B4.The maintainer's phone over USB, driven by adb. Claude installed, launched, tapped, read the screen and took screenshots; it cannot hear, and could not get far enough into the system file picker to choose a file.