Repository navigation
ADB Application Manager Pro v7.12.9
A security and stability release: no new tabs. Two small additions (below) came in with it; everything else hardens what was already there.
- The bundled adb prefers a private socket. The app starts its own adb server on a unix socket in its own folder that only the app can reach. Only when the phone refuses such a socket does it fall back to the old loopback port 5042, as in earlier versions; on such a phone the old exposure is unchanged. (Which path a phone takes has not been checked on a device.)
- Downloads are safer, in the clients this release changed. The updater, F-Droid index, store-detail, UAD list, Morphe patch/bundle download clients and the Morphe Helper's in-app browser downloader follow redirects by hand and refuse an
httpstohttpdowngrade or a hop from an outside address to a local one; credentials are dropped when the host changes (the browser downloader works out its Cookie header again for each hop). The Morphe patch and bundle downloads stop at their size cap before writing the chunk that would pass it. Requests that carry an API key refuse redirects altogether in the AI provider clients and the VirusTotal lookup and upload; the Morphe VirusTotal client follows only safe redirects within the same site and sends no key or body to a different one. A test now fails the build if new code opens a connection without redirect handling. - Installs fail closed. A store install checks the published SHA-256 (when the repository publishes one) and that the download is the package asked for; app updates and the app's own update also compare the signers of the installed and the downloaded app (a store install does not). A value that cannot be read or verified now stops the install instead of being skipped.
- VirusTotal uploads only go to VirusTotal. The upload address is checked against the host before the file is sent.
- Keys live in the Keystore vault. The GitHub token and the VirusTotal key (and its approval) are sealed with a Keystore key instead of sitting in plain preferences; older plain copies are moved on first use. If the Keystore refuses, the app says "could not be stored securely" and does not write the secret in the clear.
- Three groups of the page's calls into the app are checked. Install options, app-op names and modes, and dex compile modes (and the package names that go with them) are matched against allow-lists in the app before any command is built, and a bad package name gets its own message. The rest of the app's page-to-app calls are not covered yet.
- A crafted name in the Morphe tab can no longer run a command. The Morphe tab built its tap handlers from package names, versions and repositories that come from a third-party patch bundle and the community list; a name such as
x');AndroidBridge.executeShell('id');//ended the quoted argument and ran a shell command when the card was tapped. Values now go into the handlers as JSON strings (27 handlers in the Morphe tab, plus the VirusTotal link, the Task Manager kill button and the profile buttons), and a test fails if a handler builds a string argument the old way again. (Shown with a stand-in for the app, not on a phone.) - The ADB cheat sheet opens in the browser. The button used to load the gist into the page as a script (JSONP) and put its HTML into the page, so whoever controls that gist, or anything on the way, could run code with the app's shell, file and install access. It now opens the gist in the browser and adds nothing to the page.
- Connected Devices: adb options that move adb to another server are refused. The
adbcommand of that tab passed up to 80 arguments on; options such as-P,-H,-L,-a,--server-socketand--one-device-server, and the commandskill-server,start-server,server,nodaemon,fork-serverandreconnect-server, are refused in the app (also behind-s <device>and behindwait-for-device). Everything a person types for a device is unchanged. - The full-screen terminal: restarting a session no longer breaks the new one. Closing a session and starting another under the same name used to let the old session's late end remove the new one from the app's list (the terminal could not be typed into, resized or closed, and the new shell kept running unseen). Starts are now numbered; a late end, late output or a slow older start can no longer touch a newer session, and the page drops notices of an older start.
- The full-screen terminal: a big paste no longer freezes it. Pasting about 100 KB while a program floods its output (
yes, say) could block the paste, the resize behind it and the acknowledgement that lets the output continue. Input and resizes are now queued (up to 1 MiB; a larger paste is refused, not cut) and a separate writer sends them to the program in order; input for a program that has ended is refused. Checked against the real helper on a computer, not on a phone. - Five of the page's file calls refuse the app's own private files. Sharing a stored file, opening it with another app, uploading it to VirusTotal, sending it by Bluetooth and deleting a backup used to take any path the page gave them, including the app's settings, the adb key and the logs. These five calls now refuse the app's data folder (allowed: the Morphe Helper's downloads and the cache folders for files you picked or downloaded; a link put in place of an allowed folder, or a hard link to a private file, is refused too), and a backup is deleted only if the app lists it. Files in shared storage and patched APKs still work. The File Manager's own routes are covered too (next entry). This is still not a complete barrier: the page can run commands in the working modes that allow it, and in standard mode the commands run as the app itself. Not run on a device.
- The File Manager's own routes refuse the app's private data too, and a file is judged once it is open. Reading, editing, copying, moving, deleting and removing, installing, thumbnails, images, PDFs, the archive routes (open, extract into, compress from and into) and the file search no longer touch the app's own data folder (settings, sealed secrets, the adb key, logs); listing the folder still shows names. Reads, the copies behind Share, Open with and Bluetooth, the PDF viewer and the VirusTotal upload now open the file first and decide from the open file (where it really points, and how many names it has), so a name swapped for a link between the check and the open no longer gets through; VirusTotal hashes and uploads a copy made from that checked file. The write, move, remove, thumbnail, image, install and archive-open checks are still made by name before use. Tested on a computer (suites
privatepaths,filesearch); not run on a device, so check that the File Manager still shows what it should. - The full-screen terminal really ends a program that ignores the hang-up. Closing the terminal sends SIGHUP; a program that ignores it (
trap '' HUP) used to keep running. The helper now waits 500 ms and then kills the program and everything in its process group (status 137). A program that obeys SIGHUP still ends at once. The three native helpers (arm64, 32-bit ARM, x86_64) are rebuilt; tested on a computer and under an emulator (qemu), not on a phone. - Release workflow: the version typed into a manual run is validated and never pasted into a shell command, and a run without the release signing key now fails instead of publishing APKs that no installed copy of the app accepts as an update (a test run can tick
allow_throwaway_key). Not run yet. - Termux link: silent connections no longer hold up the real one. Another program on the phone could open the link's loopback port and say nothing; each such connection held the one accepting thread for up to 3 seconds, so a few of them kept Termux's real connection waiting until the timeout. The link now polls the first message of all pending connections in turn without blocking: no thread per connection, at most 32 sockets held at once (the oldest is closed when more arrive), and a connection that speaks is looked at within a short wait however many silent ones are queued. This is not protection against a flood: the port still has a finite backlog, and any program on the phone can connect before the token is checked.
- RAR archives: a solid RAR5 entry that cannot start no longer ends the whole extraction with an internal error, and a RAR5 entry whose unpacked size is unknown no longer skips every size guard.
- Signing and zip alignment: a failed write while signing no longer leaves a truncated APK and keeps the real error; a stored entry with an unknown extra field close to 64 KB stays 4-byte aligned (it used to lose its padding).
- Smaller fixes: launching an app through the assistant slot now saves your assistant setting first and puts it back at the next start if the app was killed halfway; ZIP extraction stops at an entry's declared size and a zip's entry count is capped; a line break in a file name can no longer inject phantom entries into SD Maid's stat-based scans (records carry their own framing and end marker) or into the storage search for package files (the search skips such names); SD Maid's plain file listing still splits such a name (C-005 in the handoff); a command that finishes without its exit marker (timeout, start failure, unauthorised Shizuku) is no longer reported as done; release builds log only the mode and sizes of a command, not its text; background workers (SD Maid, Connected Devices, trackers, the Task Manager poll) are stopped when the app closes.
- Dex optimization: two more modes. The Dex optimization sheet (single app and batch) now offers space and reset. Reset puts the app's dex optimization back to the state Android uses after an install (
pm compile --reset); the exact result depends on the Android version, and the sheet says so. - Standby bucket. A Standby button in the app menu shows the bucket the phone has an app in (
am get-standby-bucket) and sets it to active, working set, frequent, rare or restricted. It reads the bucket back and only reports success when the phone shows the one you asked for. - For people changing the code: AGENTS.md describes how to build, test and send changes (one finding per pull request, tests, the human-approval list).
- Tests and docs:
docs/DEVICE-TEST-SCRIPT.mdis a step-by-step script of adb commands for the phone (it touches no protected file);node tests/docs/check-shell-blocks.jschecks that every shell block in the Markdown docs parses withbash -nand has no bare<placeholder>; new suites check that a hung command is killed: the SD Maid shell wrapper (the shell itself is killed and the call returns at its deadline; a child it started is not part of that promise) and Rish (the command and its whole process tree). - Not run on a device: none of the above has been run on a phone by the people and tools that wrote it. The device checklist has a new section (19) for selected items (the private socket, the vault upgrade, download and install checks, dex
space/reset, the standby bucket),docs/DEVICE-TEST-SCRIPT.mdturns it into adb commands and covers the terminal, anddocs/RELEASE-CHECKLIST-v7.12.9.mdlists what to try after installing the build. The Termux link, RAR, signing and zip-alignment fixes have tests on a computer but no on-device step. - Known gaps, left for a later release: in ADB, Shizuku and root mode a store or source install (
storeInstall/storeSourceInstall) still installs the https APK the page names without a confirmation from the app itself (the native confirmation, #109, is not in this release; the signer and hash checks above still apply); a few File Manager checks (write, move, remove, thumbnail, install, archive open) are still made by name before use, so a swap between the check and the use is not caught there (it needs something already running with the app's own file access); in standard mode the page's shell commands run as the app, so no path check is a boundary there; the VirusTotal key is still passed from the page with each scan (it is stored sealed, but the page holds it in memory); there is no content security policy yet; archive extraction trusts the sizes an archive declares (a small crafted archive can fill the storage), tar hard links extract as empty files, and a few small RAR findings are listed indocs/COPILOT_CLAUDE_HANDOFF.md, together with the findings of the read-only audits of archives, the Morphe Patcher and the font scan.