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.
Configs are defined in Config.java
.
android.car.bugreport.enableautoupload
- please see Config#ENABLE_AUTO_UPLOAD to learn more.android.car.bugreport.force_enable
- set it true
to enable bugreport app on all builds.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/.BugReportActivity
MetaBugReport.Type.INTERACTIVE
bug report, shows audio message dialog before collecting bugreport.adb shell am start-foreground-service -a com.google.android.car.bugreport.action.START_SILENT com.google.android.car.bugreport/.BugReportService
MetaBugReport.Type.SILENT
bug report, without audio message. It shows audio dialog after collecting bugreport.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
.