Commit Graph
28 Commits
Author SHA1 Message Date
Claude d527262420 AT command reference: follow D-Modem's, with each bump
tools/at_reference.py copies the D-Modem submodule's docs/at_commands.pdf
into the app's assets (and names its commit in their README); --check
fails when the two differ. The D-Modem bump workflow runs it with each
bump, and CI's docs job checks it. The copy here was from 7f53883: now
3f7d6b2's, the submodule's.

Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRgas5TD8Qpbs8x2NK
2026-11-10 15:50:55 +00:00
Claude ec8a53747a Bump D-Modem to 3f7d6b2 (USRobotics x2 server); bump it automatically
external/d-modem-re: a3aaade -> 3f7d6b2, D-Modem's main (33 commits,
the x2 server from D-Modem#104 among them). The native engine builds
and its tests pass on it (native-test, 14/14).

A D-Modem bump workflow keeps it there: daily, by hand or on a
repository_dispatch from D-Modem it opens a pull request moving the
submodule to D-Modem's main, set to merge once the checks pass. It
needs a DMODEM_BUMP_TOKEN secret.

Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRgas5TD8Qpbs8x2NK
2026-11-09 12:53:59 +00:00
Claude 9b46e86a9c Contributor agreement check: Claude's commits on this repository's branches are exempt
As bbs: commits by Claude (noreply@anthropic.com) on a branch of the
repository itself are not checked; on a fork's pull request they still are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSQaj3bYPQDZU4qf9U
2026-11-08 11:42:17 +00:00
Claude 7efa6813a8 Contributor agreement: CONTRIBUTING.md and a sign-off check on pull requests
Each contribution comes with the suite's contributor agreement (the one
bbs, menu and brand already use): the contributor keeps the copyright
and licenses it to the D-Modem Authors under the repository's licence
and any other terms, commercial ones included.  Each commit's
Signed-off-by line says they agree.  The new workflow checks for that
line on every commit of a pull request, except pull requests from the
owner, the organization's members and bots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSQaj3bYPQDZU4qf9U
2026-11-07 10:58:30 +00:00
NeoandClaude 5a2ca6e164 Add the site, with a settings reference made from the code (#26)
tools/settings_ref.py writes docs/settings.md from the apps'
ModemSettings: on Android each setting's DataStore key, kind, default and
comment (and it fails on a setting with no key); on iOS each setting and
the Keychain name of the secrets. The iOS settings that took the comment
of the one above them get their own.

The Pages workflow builds docs/ and the README with brand's theme, and
fails if docs/settings.md is out of date; the Android and Apple workflows
skip the site's files.


Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-05 18:12:28 -08:00
Claude 71c649bce1 README as a landing page; D-Modem-RE is now D-Modem; CI skips doc-only changes
The README, titled for Android only, now introduces the app on Android
and iOS with a short feature list, a quick start, the suite's
repositories and the licence. Its sections move to docs/: the modem's
lines, fax, adapters and phone lines, the app screen by screen, building,
the iOS app and the source layout.

D-Modem-RE becomes D-Modem in comments, docs, workflows and the
generator's header, as in brand's naming guide; the build info line says
'D-Modem core <commit>' for the submodule's commit. Identifiers and the
external/d-modem-re path keep their names.

The Android and Apple workflows no longer run for a change to Markdown,
docs/ or COPYING alone (tag pushes still run).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSqjp9Pn2KBr9N9LAn
2026-11-05 10:46:04 +00:00
Claude ad288dad4a CI: no release build on a pull request
The release job (R8) is the slowest; a pull request is tried with the
build job's debug APK. main, v* tags and manual runs still build it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSpDnDnJUjH5xnnnwz
2026-11-03 23:30:23 +00:00
Claude 4b12deab91 CI: move actions to their Node 24 versions
GitHub warns that Node 20 actions are deprecated. checkout v6, cache
(and cache/restore, cache/save) v5, setup-java v5, setup-node v6,
upload-artifact v7, gradle setup-gradle v5 (v6 defaults to a proprietary
cache provider).

setup-swift has no Node 24 release yet: the DModemKit test uses the
runner image's Swift instead (6.4 on ubuntu-24.04; the package needs
tools 5.9).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S
2026-11-01 01:51:35 +00:00
Claude db3c98fd6e CI: cache apt and Homebrew downloads
Package installs sometimes stall on GitHub's runners. A local action
(.github/actions/apt, and .github/actions/brew where macOS builds) caches
the downloaded packages, and apt's package lists with them, keyed on the
runner image and the package list. A cache hit installs offline; a miss
installs as before, with retries and timeouts, and saves the cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUAp3wTZAV7UCEiC4S
2026-11-01 01:11:52 +00:00
Claude 772cdf3c9a Android signing from CI's secrets
The debug and release signing configs take a PKCS12 keystore from
ANDROID_KEYSTORE_FILE and its password, alias and key password (the
store's if empty) from the environment; without them debug builds keep
the SDK's debug key and release builds stay unsigned. CI decodes
ANDROID_KEYSTORE_BASE64 into that file: the build job with the
repository's (debug) secrets, a new release job (assembleRelease,
bundleRelease) with the protected release environment's on main and v*
tags, the debug key on a pull request. Fork pull requests, with no
secrets, build as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRuUkndpo3FJrWFe84
2026-10-31 16:36:20 +00:00
Claude 2eaed3a344 CI: the macOS jobs on macos-latest
Pinned images (macos-14, macos-15) are retired on GitHub's schedule;
macos-latest follows the current one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRSUHzMG7AJLUWME6d
2026-10-31 11:44:33 +00:00
Claude ef52a3f580 Merge main into the caller ID branch
Keeps main's V_CVM -> VCVM settings migration next to the new callerId
setting, and takes main's d-modem-re pin, which already holds the
caller ID merge (D-Modem/D-Modem#15).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRQooB42bttmxqnS23Z
2026-10-30 21:39:38 +00:00
Claude 903e861dcf native-test: the engine and C API tests on GoogleTest
engine_test.cpp's five calls are now four GoogleTest tests, each with a
dmodemd of its own, and c_api_test.c is c_api_test.cpp, seven tests
(its header still compiled as C, c_api_header.c). ctest registers each
test on its own (gtest_discover_tests). GoogleTest is the system's
(libgtest-dev, added to the native job) or else fetched, v1.14.0 as
D-Modem-RE has it. The USB line tests stay as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
2026-10-30 14:32:16 +00:00
Claude bd3fa40dfd CI: each commit run once, superseded runs cancelled, time limits, one ABI on the emulator
- Pushes run CI only on main; a branch's commits run as its pull
  request (each PR commit ran everything twice). workflow_dispatch to
  run a branch by hand.
- A newer commit on a pull request cancels the run before it.
- Every job has a time limit: a hung test had a build job running for
  over an hour, with GitHub's default 6 hours to go.
- The emulator job builds x86_64 only (-Pdmodem.abis, new: the ABIs of
  the native code and proot, all four by default); the build job still
  builds all four.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
2026-10-30 14:16:54 +00:00
Claude 11861248eb Apple CI: the iOS app built for arm64 simulators only, as #4 has it
The job now gets as far as the app, whose x86_64 simulator link fails:
the shared Kotlin's XCFramework has no x86_64 simulator slice. #4's
apple.yml, unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRSgB6M9Vp9dEP1haEE
2026-10-30 12:21:12 +00:00
Claude 6ed4134a0e Apple CI: build the iOS app for the arm64 simulator only (the shared XCFramework has no x86_64 slice)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUcd5i5X7Q7F2QBNEF
2026-10-30 11:54:52 +00:00
Claude c2c803f544 Caller ID in the incoming call's popup and notification; the CI's APK unzipped
The modem's caller ID after the first RING (AT+VCID=1's NMBR and NAME,
=2's MESG, voice mode's <DLE>X packet) now names the call: the popup and
the call notification show the caller's name, the number under it (or
the number alone, or "Private number" when withheld), and the
notification's Person carries the tel: URI.  A new Modem setting,
"Caller ID" (on by default), sends AT+VCID=1 at start.

D-Modem-RE goes to the commit that gives SIP calls caller ID (the
INVITE's P-Asserted-Identity or From): D-Modem/D-Modem#15.

CI: the debug APK is uploaded as the .apk itself (upload-artifact v7,
archive: false) instead of inside a zip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUcd5i5X7Q7F2QBNEF
2026-10-30 11:01:52 +00:00
Claude e0a0396eb7 CI: upload the debug APK even when a test fails
The APK is built before the unit tests run, but the upload was skipped
whenever any test failed (PppLoopbackTest has been timing out on the
runners), so there was no APK to try on a phone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRVHnHRzok8eDG2idnz
2026-10-29 13:05:07 +00:00
Claude f0abbcc59b CI: read the D-Modem submodule with the DMODEM_TOKEN secret
Renamed from DMODEM_RE_TOKEN, now that D-Modem-RE is D-Modem/D-Modem.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUwD2JJ5d6fgHmpVTw
2026-10-29 09:59:16 +00:00
Claude f632959ef9 Point repository references at the D-Modem organisation
The repositories moved from Neo-Desktop to the D-Modem GitHub
organisation: D-Modem-RE is now D-Modem/D-Modem, pico-serial is
D-Modem/hardware, modemmenu (PBX-Modem) is D-Modem/menu, bbs-sec is
D-Modem/bbs and go3270-sec is D-Modem/go3270.  Update links, module
paths, submodule URLs and source-location strings to match.  Copyright
notices still name Neo-Desktop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRUwD2JJ5d6fgHmpVTw
2026-10-29 09:02:38 +00:00
Claude 9915decc6d Comments for every function: the last batch; CI checks it
The UI tests, Gradle's script, the iOS app and the native test hosts
(batch 6 of 8, comment lines only) and the checker's own. Every
function in the app is now documented; android.yml's docs job runs
tools/doc_check.py first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-27 08:23:54 +00:00
Claude 133d5acb61 iOS app: SwiftUI on DModemKit and the shared terminal
ios/DModem (XcodeGen's project.yml, iOS 16): Home (the modem's state, the
rates and what the CONNECT was, the call's time, start, hang up, stop, an
AT command line and its last words), the terminal (the shared Kotlin
emulator through TerminalBridge, drawn run by run in a Canvas; CP437 and
the VGA colours; the keyboard and a hardware one's arrows and Esc; Esc,
a sticky Ctrl, Tab and the arrows on a bar; pinch for the font), the log
(shared as text) and the settings (the SIP account or user:password@host,
incoming calls, T.38, the speaker, the AT commands at start, the log
levels). The modem's speaker on AVAudioEngine; the audio session (its
sound, or quiet) keeps a call going in the background. The DNS servers
from the resolver's state (SystemDNS.c: iOS has no resolv.conf for the
engine).

shared: TerminalBridge, the terminal for Swift (octets as Latin-1 strings
both ways, rows as runs, keys, replies, the title, the look and the
character set), tested on the JVM and natively; the framework also as an
XCFramework (assembleDModemSharedXCFramework).

CI: the macOS job builds the shared XCFramework, runs DModemKit's tests
and builds the app for the simulator; the Linux job runs DModemKit's
tests on the host engine. Not built here: no Xcode on Linux (DModemKit,
TerminalBridge and SystemDNS.c are).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-18 02:15:16 +00:00
Claude 74a9c84cfc Kotlin Multiplatform: shared/, what the Android and iOS apps share, starting with the terminal's emulator
The terminal's VT/xterm emulator, its screen, Sixel, the character sets,
the keys, the characters' widths and the themes move to shared/'s common
Kotlin (the same package: the app's code as it was), their JVM-only calls
in common Kotlin's ways (code points, ISO 8859-1, copyInto, Base64.Mime).
The Android app has its JVM side; iOS its framework, DModemShared (iOS
devices, simulator); Linux native runs the common tests too.

TerminalEmulatorTest in common Kotlin (kotlin.test): on the JVM and
native; XtermFeaturesTest on the JVM. CI: the shared tests on Linux
(JVM, native) and on an iOS simulator (apple.yml).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-17 13:57:05 +00:00
Claude fd3e12243d Toward iOS: the engine's C API, an XCFramework build for Apple's systems, its Swift tests
The engine for a program in C or Swift (dmodem_engine.h): started on SIP
or a peer line, its DTE a socket, the log, status, exit, peer line and
speaker as callbacks; native-test's c_api_test drives it (AT commands, a
dial handing the program its line, BUSY, the end).

ios/build-native.sh builds the engine with D-Modem-RE, libre and Mbed
TLS for iOS (devices, simulator) and macOS into DModemEngine.xcframework;
ios/DModemSmoke's Swift tests run it on macOS through the C API. CI
(apple.yml) does both on a macOS runner; android.yml's native job runs
the engine's tests with Apple's fallbacks on Linux too.

D-Modem-RE to its claude/apple-portability branch (portable.h: Apple's
ways where Linux has its own), on top of the speaker hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-17 13:45:11 +00:00
Claude a02a578a5d Linux in the local terminal: Alpine with proot, the phone's storage at /sdcard
- proot (Termux's, external/proot) and its loader built with the NDK
  for each ABI by native-proot/build.sh (talloc fetched and checked by
  SHA-256, built as one file), run by Gradle before each build and
  packaged as libproot.so and libproot-loader.so: extracted on install,
  in the native library directory, the one place Android 10 on lets an
  app run its own programs
- LinuxSystem: Alpine's minimal root file system for the phone's ABI,
  found in Alpine's release list, downloaded with its SHA-256 checked,
  unpacked (Tar: ustar, pax and GNU names, links and modes, nothing
  written outside it, removed without following links), set up (the
  phone's name servers, a prompt) and run as root with proot: the
  device's /dev, /proc and /sys, made-up /proc files for those Android
  hides, hard links as proot's link2symlink, and the phone's shared
  storage at /sdcard when the app has "all files access"
- Settings, Linux: install (it goes on while the user moves about the
  app), size, open a shell, remove; the storage permission; the
  terminal's menu offers "New Linux shell (Alpine)", installing first
  when it isn't there
- Hang-up sent again shortly after the first, for a job the shell was
  forking as it went (found by the tests)
- Tests on the host: proot built by the same script, Alpine downloaded:
  a root shell, the storage both ways, the window's size, hard links,
  apk installing a package and running it, removal leaving the storage;
  the tar reader against GNU and pax tars and ones made to escape; the
  app installing it from Settings and opening its shell. CI installs
  gawk and mksh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-16 21:03:36 +00:00
Claude 3b8de945bd PuTTY .ppk keys: import and export
- Import PuTTY's private key files, versions 2 and 3 (with their
  passphrase), their comment kept as the key's
- Export as .ppk version 3 (Argon2id, AES-256-CBC, HMAC-SHA-256, as
  PuTTYgen 0.75+ writes them) or version 2 (for older PuTTY and WinSCP),
  with or without a passphrase; chosen in the export dialog beside
  OpenSSH's form
- Imported RSA keys that come without their primes (sshj reads .ppk
  ones so) made whole again from n, e and d: Android's provider
  wouldn't encode them, so they couldn't be kept
- Tested against puttygen: every key type, both versions, with and
  without a passphrase, read by puttygen (MAC and decryption checked)
  and converted back to the same private key; puttygen's own keys
  imported; a wrong passphrase refused. CI installs putty-tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-16 19:42:31 +00:00
Claude a946d5d828 SSH port forwarding, SOCKS proxy, agent forwarding, ssh-keygen
- Port forwards per entry and live per session, in ssh's own syntax:
  local (-L), remote (-R) and dynamic (-D, a SOCKS 4/4a/5 proxy);
  each one's state (listening, port, connections, errors) shown in
  the session's "Port forwards, agent, keys" panel, more added there
- Agent forwarding (ssh -A): the app's keys served to the server over
  the agent protocol (Ed25519, ECDSA, RSA with rsa-sha2-256/512), each
  use confirmed by the user unless the entry says not to
- ssh-keygen: Ed25519, ECDSA P-256/384/521 and RSA 2048/3072/4096 with
  a comment; SHA256 and MD5 fingerprints and randomart as -lv draws
  them; the private key exported in OpenSSH's form, encrypted with a
  passphrase (bcrypt KDF, aes256-ctr) as ssh-keygen writes it; comments
  changed; a key put on the server once (ssh-copy-id)
- Tests against OpenSSH itself where installed (sshd, ssh, ssh-add,
  ssh-keygen): every key type read back by ssh-keygen with and without
  a passphrase, its randomart and fingerprints matched; forwards both
  ways and SOCKS through sshd; ssh on the server logging in onward with
  the forwarded agent, and refused when the user says no; ssh-copy-id.
  CI installs OpenSSH for them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-16 18:28:38 +00:00
Claude f97c2a2767 App: Gradle project, the modem's foreground service, SIP settings
- Gradle 9.8.1, AGP 9.4.1 (its built-in Kotlin, 2.4.21), compileSdk 37,
  minSdk 26; the native library built by externalNativeBuild for
  arm64-v8a, armeabi-v7a, x86_64 and x86 (only dmodem_jni, NDK r29), 16 KB
  page aligned; R8 keeps NativeModem's natives and callbacks.
- ModemService: a foreground service (specialUse) that runs the native
  modem with its DTE on DteHub, sends the init commands (ATX3), holds a
  wake lock and a low-latency Wi-Fi lock while on, takes the DNS servers
  from the active network, and starts the modem again when the default
  network changes (after the call in progress); a notification with the
  call's state and Stop.
- DteHub: the modem's DTE shared by any number of listeners (console,
  terminal, bridges), kept across the modem's restarts.
- ModemState: the run state, the call's status, the log and the
  console's text, for the UI and the notification.
- Settings in DataStore: the SIP account (or user:password@host pasted),
  incoming calls, T.38, init commands, country, log levels; no backups
  (the password).
- UI (Compose, Material 3): Modem (start/stop, status, an AT command line
  and the modem's output), Settings, Log.
- Tests: DteHub and the settings (JVM, 5 pass); NativeModemTest
  (instrumented: the library loads, binds, answers AT, ATI3, ATX3, stops,
  and closing the DTE stops it), compiled here, run by CI on an emulator.
- CI: the APK, unit tests and lint; native-test on the runner; the
  instrumented tests on an x86_64 emulator.  The private submodule needs
  a DMODEM_RE_TOKEN secret.

Lint: no issues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172Hejd12i4aYikYW9vgpZs
2026-10-16 15:19:57 +00:00