Skip to content

About

Herdr mod: Android Studio's Run 'app' on Shift+F10, with Wi-Fi pairing by QR or code

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Android Run for Herdr

A Herdr mod that brings Android Studio's Run 'app' to Shift+F10: it builds your variant, installs it on the connected phone or emulator and launches it, with the build log one click away. With nothing connected it offers Wi-Fi pairing, by QR code or by pairing code with the phone's address filled in, or your emulator. Outside Android projects it stays out of the way.

Install

Ask your agent in Herdr:

Read ~/.config/herdr-app/AGENTS.md, then add the mod at https://github.com/dev-gvs/herdr-android-run

Or by hand:

  1. Copy mods/android-run/ into ~/.config/herdr-app/mods/.
  2. Merge keys.json into your ~/.config/herdr-app/keys.json.
  3. Add a block for it to a layout you own (see RECIPE.md). Without the block the key does nothing.
  4. Run herdr-app check ~/.config/herdr-app/mods/android-run.

Needs

  • The Android CLI as android, and adb from the Android SDK.
  • qrencode for the QR code. Without it, pairing by code still works.
  • avahi-browse is optional. It finds phones when adb's own discovery lags.

Built and used on Linux. Stock macOS lacks timeout and setsid, which some steps use.

What it does on your machine

The mod runs your project's Gradle wrapper, which executes the project's build scripts, and android, adb, avahi-browse, qrencode and hc. It reads your project's Gradle files, manifests and build output, and writes under Herdr's data/android-run/. It reaches the network only through mDNS discovery and adb on your local network.

Build, delta install and launch have run on a real phone. Wi-Fi pairing and starting an emulator have only run against stand-in tools so far.

RECIPE.md is the full brief for building or changing it.

Screenshots

In the status bar during a build:

Android Run in the status bar

After clicking it:

Show log and Stop

Pairing by QR code or by pairing code:

Pair device using Wi-Fi

About

Herdr mod: Android Studio's Run 'app' on Shift+F10, with Wi-Fi pairing by QR or code

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages