by adom
Puts your Android phone on your Adom Mesh, so the AI on your own machines can open and drive its apps, read your texts and notifications, and place calls. It works unplugged, with no root. Nothing can reach the phone until you trust a machine on it, and you approve what the AI may do with a real touch.
← Commit history
Publish 0.1.1
8 files changed
+323
README.mdadded+55@@ -0,0 +1,55 @@+Adom Bridge Android puts your phone on your Adom Mesh, next to your PCs. The AI on a machine you trust can then use the phone for you: open and drive apps, read your texts and notifications, place calls, send texts. It works over the mesh with no cable, and needs no root.++## What you can ask++- "Open the Clock app on my phone and set an alarm for 6 AM"+- "What texts did I get this morning?"+- "Take a screenshot of my phone"+- "Call the shop from my phone"++## You decide, on the phone++Nothing can reach the phone until you trust a machine on it. After that, each kind of action is **Ask me**, **Always allow** or **Never**. A request shows which machine and which AI thread is asking, what it will do, and why.++| A request on the phone | What your AI may do |+|---|---|+|  |  |++- **A real touch only.** The app refuses taps injected by software, so an AI that can press buttons on the phone cannot approve itself.+- **Protected apps.** Banking, wallet, password manager, authenticator and system settings apps are off limits by default. You can add or remove apps.+- **Passwords are yours.** It will not type into a password field, and it cannot unlock the phone.+- **Files.** It reaches only its own Adom folder.+- **Activity.** Every request is logged in the app.++## What it can do++| Area | Verbs |+|---|---|+| See | `android_screen_read`, `android_screenshot`, `android_wait_for` |+| Use apps | `android_open_app`, `android_list_apps`, `android_tap`, `android_type`, `android_scroll`, `android_swipe`, `android_key`, `android_open_url`, `android_wake`, `android_volume` |+| Texts and notifications | `android_sms_read`, `android_sms_send`, `android_notifications`, `android_notification_open`, `android_notification_reply` |+| Calls and contacts | `android_call`, `android_call_log`, `android_contacts` |+| Files and messages to you | `list_files`, `send_files`, `pull_file`, `notify_user` |+| Health | `status`, `commands` |++## Set up++You need Android 13 or later, and Adom Bridge on a PC signed in to the same Adom account. The easiest way is to plug the phone in and tell your AI:++> Put my Android phone on my Adom Mesh with Adom Bridge Android++It installs the app and turns on what it needs. Without a cable, download the APK from this page on the phone, install it, and go down the Setup list in the app. If Android greys out Screen access, open the app's App info page and choose **Allow restricted settings** from the three-dot menu. On Samsung phones, turn off Auto Blocker first.++Then, on the phone, sign in to Adom and trust your PC under **Your machines**. On the PC, accept the join card. Leave **Stay reachable** on, so Android does not put the app to sleep. Unplug the phone.++The app is distributed here, not on Google Play.++## Known limits in 0.1.1++- After a scroll, reading the screen can return what was there before it. Screenshots are always current, and your AI's skill knows to use them.+- RCS chats in Google Messages are read from notifications, because Android does not list them with your texts.+- Tested on a Galaxy S24+ over Wi-Fi. Cellular and long stretches with the screen off have not been tested.++## License++Copyright Adom Industries.
SKILL.mdadded+72@@ -0,0 +1,72 @@+---+name: adom-bridge-android+description: >-+ Use the user's Android phone as an Adom Bridge target: open and drive apps, take screenshots,+ read texts and notifications, place calls, send texts, over the Adom Mesh, with no cable. Also+ install and set up the phone app. Use when asked to do something on my phone, open an app on my+ phone, read my texts, call or text someone, or put my phone on my mesh.+---++# Adom Bridge Android++The phone is one more `--target` on the user's Adom Mesh. Find its name with+`adom-bridge targets`, then:++```bash+adom-bridge --ai-thread "<thread>" --target <phone> status+adom-bridge --ai-thread "<thread>" --target <phone> commands # every verb and its arguments+adom-bridge --ai-thread "<thread>" --target <phone> android_open_app '{"app":"Clock","reason":"Set the 6 AM alarm you asked for"}'+```++## Rules++- **Every gated verb needs `reason`**: one plain sentence. The owner reads it on the phone.+- **Calls and texts reach other people.** Only place or send one the user asked for, and name+ exactly who and what in chat first. Never turn these permissions to "Always" for convenience.+- **Never try to get past a prompt.** Permission and trust need a real finger on the phone;+ injected touches are refused. `declined` means stop and ask in chat. Do not retry.+- **`protected_app`** (banks, wallets, password managers, Settings): not available to you.+- **`device_locked`**: only the owner can unlock it. `android_wake` lights the screen, no more.+- The owner may be using the phone. Say what you are about to do before you open an app.+- Passwords are the owner's to type (`password_field`).++## Driving an app++1. `android_open_app {app}`.+2. `android_screenshot` to see it. `android_screen_read` lists the nodes.+3. `android_tap`, `android_type`, `android_scroll` or `android_swipe`.+4. Look again before saying it worked.++**After a scroll in 0.1.1, `android_screen_read` and text or node taps can return the screen from+before the scroll.** Take an `android_screenshot` and tap by `x,y`. The numbers are screen pixels,+the same as in the full-size screenshot.++## Texts and notifications++- `android_sms_read` returns SMS and MMS. RCS chats in Google Messages are usually not there:+ use `android_notifications`.+- `android_contacts` looks up a number. If several match, ask the user which. Never guess.++## Set up a phone++Android 13 or later. The APK is in the Download box of adom/adom-bridge-android.++**With a USB cable** (USB debugging on, the "Allow USB debugging" prompt accepted): download the+APK, then run `APK=<apk> tools/install-on-phone.sh adb`. It installs the app and turns on screen+access, notification access and the battery exemption. Pass `adb -s <serial>` if several devices are+attached. On Samsung, Auto Blocker must be off for USB debugging.++**Without a cable**: the owner downloads the APK on the phone and installs it, then uses the Setup+list in the app. If Android greys out Screen access, the owner opens the app's App info page, the+three-dot menu, "Allow restricted settings".++Then the owner, on the phone: **Sign in to Adom**, tap their machine under **Your machines**, and+**Trust this machine**. On the PC, they accept Adom Bridge's MESH JOIN card. These steps are theirs;+do not do them for them.++## When it does not answer++- After a trust change or a restart of the app, the first call can take about 30 s. A PC that just+ failed to reach the phone waits up to 2 minutes before it tries again.+- The app must be **Reachable** (top switch) and exempt from battery limits ("Stay reachable").+- `status` shows the battery, network, lock state, current setup and permissions.
install.shadded+9@@ -0,0 +1,9 @@+#!/usr/bin/env bash+set -e+DEST="$HOME/.claude/skills/adom-bridge-android"+mkdir -p "$DEST/tools"+cp SKILL.md "$DEST/"+cp tools/install-on-phone.sh "$DEST/tools/"+chmod +x "$DEST/tools/install-on-phone.sh"+echo "OK: installed the adom-bridge-android skill to $DEST/."+echo "Hint: the phone app is the APK in the Download box of adom/adom-bridge-android; the skill says how to set it up."
package.jsonadded+80@@ -0,0 +1,80 @@+{+ "slug": "adom-bridge-android",+ "name": "adom-bridge-android",+ "version": "0.1.1",+ "type": "app",+ "title": "Adom Bridge Android",+ "brief": "Puts your Android phone on your Adom Mesh, so the AI on your own machines can open and drive its apps, read your texts and notifications, and place calls. It works unplugged, with no root. Nothing can reach the phone until you trust a machine on it, and you approve what the AI may do with a real touch.",+ "description": "The skill that teaches an AI to use an Android phone as an Adom Bridge target, plus the USB setup script. The phone app itself is the signed APK in the Download box.",+ "discovery_pitch": "Use when the AI needs to use the user's Android phone: open or drive an app, take a phone screenshot, read texts or notifications, place a call, or send a text.",+ "discovery_triggers": [+ "adom bridge android",+ "control my android phone",+ "drive an app on my phone",+ "open an app on my phone",+ "read my texts",+ "make a phone call from my phone",+ "send a text from my phone",+ "take a screenshot of my phone",+ "put my phone on my adom mesh",+ "aba"+ ],+ "sample_prompts": [+ {+ "label": "Set it up",+ "prompt": "Put my Android phone on my Adom Mesh with Adom Bridge Android"+ },+ {+ "label": "Drive an app",+ "prompt": "Open the Clock app on my phone and set an alarm for 6 AM"+ },+ {+ "label": "Read texts",+ "prompt": "What texts did I get on my phone this morning?"+ },+ {+ "label": "Place a call",+ "prompt": "Call the shop from my phone"+ }+ ],+ "keywords": [+ "android",+ "phone",+ "mesh",+ "bridge",+ "accessibility",+ "sms",+ "calls"+ ],+ "tags": [+ "adom-bridge",+ "android",+ "phone"+ ],+ "dependencies": {+ "adom/adom-bridge": "*"+ },+ "files": [+ "SKILL.md",+ "README.md",+ "tools/**",+ "install.sh",+ "uninstall.sh",+ "screenshots/hero.png"+ ],+ "hero": {+ "type": "image",+ "path": "screenshots/hero.png"+ },+ "visibility": {+ "public": true+ },+ "org": "adom",+ "author": {+ "name": "John Lauer"+ },+ "scripts": {+ "install": "./install.sh",+ "uninstall": "./uninstall.sh"+ }+}
page.jsonadded+78@@ -0,0 +1,78 @@+{+ "slug": "adom-bridge-android",+ "name": "adom-bridge-android",+ "version": "0.1.1",+ "type": "app",+ "title": "Adom Bridge Android",+ "brief": "Puts your Android phone on your Adom Mesh, so the AI on your own machines can open and drive its apps, read your texts and notifications, and place calls. It works unplugged, with no root. Nothing can reach the phone until you trust a machine on it, and you approve what the AI may do with a real touch.",+ "description": "The skill that teaches an AI to use an Android phone as an Adom Bridge target, plus the USB setup script. The phone app itself is the signed APK in the Download box.",+ "discovery_pitch": "Use when the AI needs to use the user's Android phone: open or drive an app, take a phone screenshot, read texts or notifications, place a call, or send a text.",+ "discovery_triggers": [+ "adom bridge android",+ "control my android phone",+ "drive an app on my phone",+ "open an app on my phone",+ "read my texts",+ "make a phone call from my phone",+ "send a text from my phone",+ "take a screenshot of my phone",+ "put my phone on my adom mesh",+ "aba"+ ],+ "sample_prompts": [+ {+ "label": "Set it up",+ "prompt": "Put my Android phone on my Adom Mesh with Adom Bridge Android"+ },+ {+ "label": "Drive an app",+ "prompt": "Open the Clock app on my phone and set an alarm for 6 AM"+ },+ {+ "label": "Read texts",+ "prompt": "What texts did I get on my phone this morning?"+ },+ {+ "label": "Place a call",+ "prompt": "Call the shop from my phone"+ }+ ],+ "keywords": [+ "android",+ "phone",+ "mesh",+ "bridge",+ "accessibility",+ "sms",+ "calls"+ ],+ "tags": [+ "adom-bridge",+ "android",+ "phone"+ ],+ "dependencies": {+ "adom/adom-bridge": "*"+ },+ "files": [+ "SKILL.md",+ "README.md",+ "tools/**",+ "install.sh",+ "uninstall.sh",+ "screenshots/hero.png"+ ],+ "hero": {+ "type": "image",+ "path": "screenshots/hero.png"+ },+ "visibility": "public",+ "org": "adom",+ "author": {+ "name": "John Lauer"+ },+ "scripts": {+ "install": "./install.sh",+ "uninstall": "./uninstall.sh"+ }+}
screenshots/hero.pngadded⋯ 1 unchanged line ⋯
tools/install-on-phone.shadded+25@@ -0,0 +1,25 @@+#!/bin/bash+# Install Adom Bridge Android on a USB-connected phone and switch on what it needs.+# Usage: install-on-phone.sh <adb command...> e.g. APK=adom-bridge-android-0.1.1.apk install-on-phone.sh adb+set -e+P=inc.adom.bridge.android++: "${APK:?Set APK to the path of the downloaded adom-bridge-android-<version>.apk}"+# adb here may be the Windows one, which cannot read WSL paths+[[ "$1" == *.exe || "$1" == *wadb* ]] && [[ "$APK" == /* ]] && APK="$(wslpath -w "$APK")"+[ "$("$@" get-state 2>/dev/null | tr -d '\r')" = device ] || { echo "ERROR: no authorised phone"; echo "Hint: turn on USB debugging and tap Allow on the phone"; exit 1; }+"$@" install -r -g "$APK"+s() { "$@" 2>&1 | tr -d '\r'; }+# Without this, Android refuses screen access to an app that did not come from a store.+s "$@" shell appops set $P ACCESS_RESTRICTED_SETTINGS allow+# Without this, Android 15+ hides one-time codes from the notification list.+s "$@" shell appops set $P RECEIVE_SENSITIVE_NOTIFICATIONS allow || true+CUR="$(s "$@" shell settings get secure enabled_accessibility_services)"+ME=$P/inc.adom.bridge.PhoneControl+case "$CUR" in null|"") NEW=$ME;; *$ME*) NEW="$CUR";; *) NEW="$CUR:$ME";; esac # keep the owner's other services+s "$@" shell settings put secure enabled_accessibility_services "$NEW"+s "$@" shell settings put secure accessibility_enabled 1+s "$@" shell cmd notification allow_listener $P/inc.adom.bridge.Notifs+s "$@" shell dumpsys deviceidle whitelist +$P+s "$@" shell am start -n $P/inc.adom.bridge.MainActivity+echo "OK: installed. Sign in on the phone, then trust your machines."
uninstall.shadded+4@@ -0,0 +1,4 @@+#!/usr/bin/env bash+set -e+rm -rf "$HOME/.claude/skills/adom-bridge-android"+echo "OK: removed the adom-bridge-android skill. The app on the phone is not touched."