name: Bug report (Android)
description: Report a bug in the Android app
labels: ["bug", "android"]
body:
  - type: markdown
    attributes:
      value: |
        Thanks for taking the time to report a bug. Please fill in as much as you can.
  - type: input
    id: app-version
    attributes:
      label: App version
      description: "Find this in `Settings → About → Version` in the app, or in your phone's app info."
      placeholder: "v0.2.5 (build 46)"
    validations:
      required: true
  - type: dropdown
    id: app-source
    attributes:
      label: App source
      options:
        - GitHub
        - Play
        - Built from source
    validations:
      required: true
  - type: input
    id: device
    attributes:
      label: Device
      description: Manufacturer and model.
      placeholder: "Google Pixel 8 Pro"
    validations:
      required: true
  - type: input
    id: android-version
    attributes:
      label: Android / OS version
      description: Include the OEM skin if relevant.
      placeholder: "Android 16, OxygenOS 16, ColorOS 16, ..."
    validations:
      required: true
  - type: dropdown
    id: root-method
    attributes:
      label: Root / hook method
      options:
        - No root (native L2CAP support)
        - Magisk + Xposed
        - KernelSU + Xposed
        - Other (describe in additional context)
    validations:
      required: true
  - type: dropdown
    id: airpods-model
    attributes:
      label: AirPods model
      options:
        - AirPods (1st gen)
        - AirPods (2nd gen)
        - AirPods (3rd gen)
        - AirPods (4th gen)
        - AirPods (4th gen) with ANC
        - AirPods Pro (1st gen)
        - AirPods Pro 2 (Lightning)
        - AirPods Pro 2 (USB-C)
        - AirPods Pro 3
        - Other / not sure
    validations:
      required: true
  - type: input
    id: firmware
    attributes:
      label: AirPods firmware
      description: Find this under `About` in the app once connected.
      placeholder: "8454768"
  - type: textarea
    id: description
    attributes:
      label: What happened
      description: Describe what you observed and what you expected. Include steps to reproduce if applicable.
    validations:
      required: true
  - type: textarea
    id: logs
    attributes:
      label: Logs
      description: |
        If you are rooted, give the app root access, open the app, go to `Settings → Troubleshooting → Collect Logs`, and attach the resulting file here.

        Without logs most bugs are very hard to diagnose. If you are not, follow these instructions:
        (Needs access to a computer, and USB/Wireless Debugging under developer options enabled)

        Commands:
        - Get the uid: Linux/Mac: `adb shell dumpsys package me.kavishdevar.librepods | grep uid`
        - Start logs: `adb logcat --uid=<uid>,1002 >> librepods-logs.txt` (1002 is for bluetooth)
        
        Steps for proper logs
        - force close the app
        - turn off bluetooth
        - start logs
        - open the app
        - turn on bluetooth and connect

      placeholder: Paste log content or attach the file
  - type: textarea
    id: extra
    attributes:
      label: Additional context
      description: Anything else that might help (screenshots, video, related issues, what you've already tried).
