A test tool that is intended to show how to access Android Automotive OS bugreporting APIs. It stores all bugreports in user 0 context and then allows uploading them to GCS.
Bug reports are zipped and uploaded to GCS. GCS enables creating Pub/Sub notifications that can be used to track when new bug reports are uploaded.
BugReport app uses CarBugreportServiceManager
to collect bug reports and screenshots. CarBugreportServiceManager
allows only one bug report app to use it's APIs, by default it's none.
To allow AAE BugReport app to access the API, you need to overlay config_car_bugreport_application
in packages/services/Car/service/res/values/config.xml
with value com.google.android.car.bugreport
.
UI and upload configs are located in res/
directory. Resources can be overlayed for specific products.
android.car.bugreport.disableautoupload
- set it to true
to disable auto-upload to Google Cloud, and allow users to manually upload or copy the bugreports to flash drive.BugReport app uses res/raw/gcs_credentials.json
for authentication and res/values/configs.xml
for obtaining GCS bucket name.
The app supports following intents:
adb shell am start com.google.android.car.bugreport/com.google.android.car.bugreport.BugReportActivity
MetaBugReport.Type.INTERACTIVE
bug report, with audio message, shows a SUBMIT/CANCEL dialog.adb shell am start -n com.google.android.car.bugreport/com.google.android.car.bugreport.BugReportActivity -a com.google.android.car.bugreport.action.START_SILENT
MetaBugReport.Type.SILENT
bug report, without audio message. The app doesn't auto-upload these bugreports.BugReportApp comes with utils/bugreport_app_tester.py
script that automates many of the BugReportApp testing process. Please follow these instructions to test the app:
$ python bugreport_app_tester.py
$ python bugreport_app_tester.py --help
.