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
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
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
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
- 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
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
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
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
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
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
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
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
- 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
- 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
- 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
- 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