Skip to content

mrmees/aa-logcat

Repository files navigation

AA Capture

A standalone Android app for capturing Android Auto protocol debug logs during real-world sessions with production head units. Built for the open-android-auto community.

What It Does

  • Captures filtered logcat output while Android Auto is running
  • Uses Shizuku for persistent log access — works even after AA takes foreground focus
  • Three capture modes for different use cases
  • Runs as a foreground service with notification controls
  • Event markers let you annotate what you were doing at specific times
  • Exports captures as .zip (log + JSON metadata) via Android share sheet

Setup

1. Install Shizuku

AA Capture uses Shizuku to read system logs with shell-level permissions. This is necessary because Android 13+ revokes logcat access from background apps when another app (like Android Auto) takes focus.

Install Shizuku from the Play Store.

2. Start Shizuku

Open Shizuku and start the service. The easiest method is wireless ADB:

# On your computer, with the phone connected via USB:
adb tcpip 5555
adb connect <phone-ip>:5555

# Then in the Shizuku app, tap "Start via Wireless ADB"

Shizuku needs to be restarted after each phone reboot. See Shizuku's guide for other start methods.

3. Install AA Capture

Build from source or grab an APK from Releases.

4. Grant Permission

Open AA Capture — it will prompt you to grant Shizuku permission. Tap Allow. This only needs to be done once per Shizuku restart.

Usage

  1. Open AA Capture
  2. Select a capture mode
  3. Add optional session notes (e.g., "2025 Tucson Hybrid, wireless AA")
  4. Tap Start Capture
  5. Connect to Android Auto and use features normally
  6. Use the Mark Event notification button when switching activities
  7. Tap Stop in the notification when done
  8. Share the capture via the history list

Capture Modes

Mode What It Captures Time Limit
AA Protocol (standard) Session, sensors, radio, navigation, car control, media Unlimited
AA Protocol (full) All of the above plus audio and video channels Unlimited
Everything ALL system logs — produces massive files 10 seconds

For most captures, AA Protocol (standard) is what you want. Use full if you're debugging audio/video issues. Everything is a last resort for hunting down unknown log tags.

Output Format

Each capture produces two files:

  • aa-capture_YYYY-MM-DD_HH-mm-ss.log — raw logcat output
  • aa-capture_YYYY-MM-DD_HH-mm-ss.json — session metadata

The JSON sidecar contains device info, AA version, selected capture mode, session notes, timestamps, and event markers.

Building

./gradlew assembleDebug

APK output: app/build/outputs/apk/debug/app-debug.apk

Contributing

Captures from different car manufacturers are extremely valuable for protocol research. If you capture data from a car, please share it with the community via the open-android-auto project.

License

GPLv3 — see LICENSE.

About

Android app for capturing Android Auto protocol debug logs during real-world sessions

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors