Repository navigation
Releases
AAP2 v2.1.0-rc1
Android as Proxy 2 — v2.1.0-rc1 (release candidate)
Status: candidate for deliberate testing, not a stable release.
This tag must be published as a GitHub Pre-release and must not
replace v2.0.6 as Latest or appear in the ordinary in-app updater.
Changes since v2.0.6
- Hardened unattended SSH: full pinned host-key blob and restricted host-key
algorithm negotiation; explicit identification of rejected host keys without
reliance on JSch's exception text. A wrong host key is never accepted,
and neither the server pin nor Android Keystore identity is regenerated.
Host-key rejection, authentication refusal and recoverable local errors
are reported durably with hourly retry; network failures use bounded
backoff and reconnect after a genuine default-network change. - More resilient SOCKS5 CONNECT implementation: correct TCP half-close,
stall recovery for one-sided streams, TCP keepalive, connection saturation
reporting, and IPv4/IPv6 fallback within a TCP connect deadline. Fully
open idle sessions and explicitly authorized access to Android localhost
and LAN are preserved. No added SOCKS password or destination filter. - Android 13+ Connect no longer depends on the notification permission.
Foreground service is promoted promptly even when stored enrollment is
invalid or missing. Excluded application state from backup/device transfer. - Cleaner enrollment guidance, About page (version, distribution channel,
source and support), proper application name, optional battery settings. - Two source-aligned GitHub/F-Droid build flavors. GitHub retains manual
in-app APK updates; F-Droid flavor excludes APK download/install and
install-packages permission. No F-Droid store publication is claimed. - Server metadata is written crash-durably, including directory fsync.
Existing enrollment, restricted OpenSSH server API, phone signing identity,
package ID and server-side reverse-forward port remain compatible. - Guarded release workflow for RC and stable builds, with signer,
version, source-commit, archive and publication checks.
Verified before RC1
Prior to creating the official RC APK, the same application code was built
as a locally signed 2.1.0-local-20801 and exercised on two spare
devices against a separate test S2 at a.isaeff.net:
- Zebra TC21, Android 11: in-place update preserving enrollment,
working real HTTPS through the SOCKS5 reverse forward, automatic SSH
recovery after a 10-second Wi-Fi interruption and after device reboot. - SEUIC, Android 14: in-place APK update, HTTPS through SOCKS5, Connect
withPOST_NOTIFICATIONSdenied (includingUSER_FIXED), and
automatic service/SSH recovery after reboot without manually opening
the app. Following a Wi-Fi toggle, the SEUIC's Wi-Fi itself remained
disconnected in sleep; waking the display (without unlocking) restored
Wi-Fi and AAP2 automatically reconnected. This is a known OEM behavior,
not evidence that AAP2 can recover network access when Android has none. - CI: GitHub and F-Droid flavor builds/unit tests and disposable Android 11
emulator plus genuine OpenSSH/PIN/SFTP/SSH reverse-forward/SOCKS E2E passed
for the source changes from the Fable 5.2 review in PR #37.
These observations apply to the pre-RC signed test build, not yet to
the final signed RC1 artifact, and do not establish multi-week unattended
reliability. A full Direct Boot before first unlock guarantee is not
claimed based solely on these tests.
RC1 acceptance checklist
Before publication, on the maintainer's local workstation:
- Merge this reviewed version/notes commit to
masterand confirm CI is
green; prepare usingmake release TYPE=rc1with the existing long-term
signing key. Verify packagenet.isaeff.android.asproxy2,
versionName=2.1.0-rc1,versionCode=20901, certificate continuity
againstv2.0.6, SHA256 and exact source commit. - Upgrade spare Zebra TC21 and SEUIC in place from
20801without
uninstall, reset or re-enrollment. Confirm preserved enrollment and
Android Keystore identities, approved server reverse ports, SOCKS5 HTTPS,
and reboot recovery. The SEUIC may need its display woken for Wi-Fi. - Publish only with explicit
make publish TYPE=rc1; confirm GitHub
Pre-release / not Latest and check downloaded bytes and hashes using
make verify-release TYPE=rc1.
Known limits / deferred: the optional F-Droid channel is not yet
published; long-term OEM power management varies by device; an interrupted
server enroll may leave a fail-closed creating record requiring
administrator repair (tracked in issue #38). There is no automatic
remediation of uncertain Unix-account ownership. Never deploy test or RC
builds to the remote Japanese production phone/relay without a separate
maintainer decision.
The stable v2.1.0 release, if approved later, must be a new source
commit with versionCode=21000, versionName=2.1.0, reviewed stable
notes and a separately verified release-signed APK.
AAP2 v2.0.6
Android as Proxy 2 — v2.0.6
Usability fix for Reset enrollment / Change server on smaller Android
terminals.
Instead of an Android dialog with a TextField (which opened the system
keyboard, covered the destructive button, and sometimes closed the entire
dialog when Back was pressed), reset confirmation is now a full-screen
page. AAP2 provides its own compact, touch-friendly numeric keypad.
- Random four-digit code and entered digits always remain visible alongside
the keypad and red ERASE AAP2 ENROLLMENT button, pinned to the bottom. - No system keyboard is shown; pressing Android Back or Cancel returns
to AAP2 without resetting anything. - Incorrect or incomplete digits cannot unlock the destructive button;
Delete allows editing the typed digits. - The warning still explains that the current SSH identity is deleted,
another activation will be needed, and the old server's account must
separately be revoked withaap2ctl revoke ID.
No change to reset behavior, existing keys, Android SSH tunneling, S2,
APK signing or the updater. The release-signed APK can be installed in place
through AAP2's Update button.
AAP2 v2.0.5
Android as Proxy 2 — v2.0.5
Android-only usability fix for the Reset enrollment / Change server dialog.
The previous confirmation placed a long explanation above the four-digit
challenge and entry field, requiring an unexpected scroll on smaller phones.
Now the random four-digit code and numeric input are the first elements,
visible immediately without scrolling. The warning is shorter and appears
under the input, but still explains that the reset disconnects the
tunnel, deletes the phone's SSH identity, requires fresh activation, and
does not revoke the old server's account.
The destructive confirmation remains disabled until the correct four digits
are entered. Cancel leaves everything unchanged. No change to server
enrollment, SSH, signing, APK update or the reset operation itself.
Upgrade in place through the app's Update action.
AAP2 v2.0.4
Android as Proxy 2 — v2.0.4
Small Android-only usability improvement to Reset enrollment / Change server.
The destructive confirmation no longer requires typing the English word
RESET. Instead, the red warning dialog displays a new random four-digit
confirmation code whenever it opens. The user enters those four digits
using the phone's numeric keyboard. ERASE AAP2 ENROLLMENT stays disabled
until the entered digits exactly match the displayed code; incomplete or
incorrect codes do nothing. Cancel closes the dialog without changes.
The reset action remains in its separated bottom footer, away from Connect
and Update. Actual reset behavior, Keystore private-key deletion, SSH/SOCKS
shutdown, fresh enrollment and the need for server-side
aap2ctl revoke OLD_ID are unchanged.
A fresh code is shown only to the person holding the phone; it is a safety
confirmation, not an SSH authentication credential.
Install the release-signed aap2.apk using the app's Update control.
An in-place APK update preserves the existing enrollment and SSH identity.
AAP2 v2.0.3
Android as Proxy 2 — v2.0.3
Small Android user-interface update. The enrollment protocol, SSH server,
configuration storage and signing key are unchanged.
- Reset enrollment / Change server is now in its own separated footer,
pinned to the bottom of the main screen rather than next to the
everyday Connect, Details and Update controls. The intentionally strict
typedRESETconfirmation is unchanged. - After Reset followed by successful activation against a server, AAP2
now clears the obsolete “Local enrollment erased” message. It also
clears other old transient status only when an unconfigured phone becomes
configured; unrelated resumes do not dismiss Update errors. - UI instrumentation checks that the Reset link is visible below Update
and continues to require typed confirmation before deleting the local
SSH identity.
Install the release-signed aap2.apk through Update or Android's
normal package installer. The existing enrollment and Android Keystore
key are preserved by an in-place update; do not uninstall or clear app data.
AAP2 v2.0.2
Android as Proxy 2 — v2.0.2
Adds an explicit, strongly confirmed Reset enrollment / Change server
action to the Android app.
- The main screen shows a deliberately secondary red reset action; its
confirmation uses a prominent warning, displays the current server and
Connection ID, and requires the user to type uppercase RESET exactly
before the destructive button becomes available. Cancel does nothing. - A confirmed reset shuts down the active SSH reverse tunnel and SOCKS5
listener, disables Direct Boot/update auto-reconnect, clears pending
enrollment, deletes the AAP2-only private key from Android Keystore,
removes the pinned host profile and returns to Activate AAP2. - The phone can then enroll against a different SSH server with a fresh
18-digit activation code, verified SSH host key and administrator approval. - Reset is local-only: the old server administrator must separately use
aap2ctl revoke OLD_IDto revoke the old SSH public key. The old ID
is shown in the confirmation. Other Android apps and the original AAP1
app are not changed. - Includes Android UI/end-to-end regression tests for cancel, typed
confirmation, removal of the Keystore alias, disabled auto-restart and
a new independent S2 enrollment.
As usual, install the release-signed aap2.apk in place. Do not uninstall
or clear application data merely to update the AAP2 app. See the project
README and server installation guide for activation and operational security.
AAP2 v2.0.1
Android as Proxy 2 — v2.0.1
Maintenance release fixing the Update button on Android 11 and other Android builds that do not return signing metadata from PackageManager.getPackageArchiveInfo() for an APK not yet installed.
Fixed
- An otherwise valid, correctly release-signed newer APK could be rejected by AAP2 with
APK signing certificate differs from installed AAP2. This was a false positive when Android returnedsigningInfo = nullfor the downloaded archive. - AAP2 now checks the downloaded archive's package name and strictly increasing versionCode, then hands it to the normal Android system installer. Android verifies the actual APK signature and refuses to replace an installed package signed with an incompatible key.
- Added a real Android 11 instrumentation regression for a newer archive with no
signingInfo, plus wrong-package rejection.
Installation and upgrade
Download the release-signed aap2.apk from this GitHub Release. The installer requires explicit approval and may ask for permission to allow installation from AAP2.
Important for v2.0.0 / versionCode 20012 and older: their own Update button may exhibit the false-positive failure. Such existing installations need one manual in-place APK update (open the downloaded release APK in Android's system installer, or use adb install -r on a locally connected device). Do not uninstall the app or clear its data: that would discard enrollment information. Once v2.0.1 or newer is installed, future in-app updates use the corrected path.
Server-side aap2ctl, approved keys, SSH tunnel protocol and S2 deployment are unchanged. Keep the original AAP1 application untouched. Extended OEM-specific unattended background reliability remains a separate acceptance area.
AAP2 v2.0.0
Android as Proxy 2 — v2.0.0
First public AAP2 release: a self-hosted Android SOCKS5 exit over a restricted outbound SSH reverse tunnel.
Highlights
- New Android package
net.isaeff.android.asproxy2, installable alongside the original AAP1. - Single 18-digit manual activation code; independently verified SSH server fingerprint; P-256 identity held in Android Keystore; explicit administrative approval.
- Debian 13 / OpenSSH server manager
aap2ctlwithenroll,approve,list,revoke,doctorand temporary-PIN cleanup. - Per-device loopback-only reverse SOCKS5 TCP port;
aap2ctl listmarks current reverse listeners(UP)/(DOWN), distinct from registration and proxy health. - Persistent Android foreground service with reconnect, Direct Boot and post-APK-update restore that respects a manual Disconnect.
- User-initiated Update from the latest stable GitHub Release: validates package/version/certificate and uses the Android system installer. Android may require a one-time permission for installs from AAP2.
- Local release signing and maintainer Makefile shortcuts:
make build,make release VERSION=..., explicitmake publish VERSION=...,make verify-release,make installandmake curl.
Install
Start with the README and the server setup guide.
Install the attached aap2.apk on Android 7.0+; do not install or update an enrolled device with an APK signed by a different certificate. The server installer does not modify or reload sshd_config; follow the manual SSH Match policy instructions.
To connect a new device:
aap2ctl enroll "MyPhone" --server ssh.example.org --manual-code
aap2ctl approve ID
aap2ctl listIndependently check the complete SSH host-key fingerprint shown on the phone before sending any activation code.
Tested and limitations
Tested real SSH/SOCKS5 on local Android 11 Zebra TC21 and Android 14 Seuic Cruise2, release-signed APK in-place upgrades, and isolated Debian 13 OpenSSH/PAM/systemd integration in CI.
Caveats: OEM battery restrictions, Wi-Fi changes and extended unattended operation vary by device. The user-approved Android in-app APK installer flow is a separate first-release acceptance check on the local Zebra. An (UP) reverse listener means an SSH TCP listener exists, not proof of SOCKS5 HTTP reachability. Keep AAP1 running on any remote production phone until AAP2 is tested there.
Integrity
The release provides SHA256SUMS for aap2.apk. Signing credentials remain with the maintainer, never in GitHub Actions or in the source repository.