[RESTRICT AUTOMERGE] Add bugreport Config.

Config is synced with android.provider.DeviceConfig.

- Have sys prop "android.car.bugreport.enableautoupload"
  to retain current behavior of the AAE BugReport App.
  It will be removed in upcoming CLs after thoroughly
  testing DeviceConfig.
- New sys prop "android.car.bugreport.force_enable_gcs_upload"
  will be used to force enable uploading to GCS for
  testing *user* builds. Because flag "upload_destination=gcs"
  only works on *userdebug* builds.
- The "car" namespace is defined in android.provider.DeviceConfig.

Difference from pi-car-dev:
- Uses DeviceConfig instead of CarSettings.Global.
- Dropped auto_upload flag, instead it checks if
  upload_destination was set to "gcs".
- Dropped CarSettings.Global changes.

Test: tested on a hawk bench with different flag values.
Change-Id: I616b2dfe0653a6b7a6333aa0f633ca3b88dce5d5
Bug: 143183993
(cherry picked from commit 46446351e8b280f4cd9e10f1ec4f5e1fbd4bf629)
(cherry picked from commit 4087f3cb346b226963511971abff5a17e95277b1)
10 files changed
tree: b6a6ddd8b26df1d7cbf878c3c2e734b43292eb87
  1. car-bugreportd/
  2. car-default-input-service/
  3. car-lib/
  4. car-maps-placeholder/
  5. car-systemtest-lib/
  6. car-test-lib/
  7. car-usb-handler/
  8. car_product/
  9. computepipe/
  10. EncryptionRunner/
  11. evs/
  12. experimental/
  13. FrameworkPackageStubs/
  14. obd2-lib/
  15. procfs-inspector/
  16. service/
  17. tests/
  18. tools/
  19. user/
  20. vehicle-hal-support-lib/
  21. watchdog/
  22. .clang-format
  23. .gitignore
  24. Android.mk
  25. CleanSpec.mk
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
README.md

Native (C++) code format is required to be compatible with .clang-format file. Run

git clang-format --style=file --extension='h,cpp,cc' HEAD~

Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.