Final improvements on CarProvision app:

- Listen to Car UX restrictions so it exits if the car moves or
  gear changes to rear.
- Sets the proper car-related Settings.
- Don't disable the DeviceOwner button if the DPC app is not
  available (so it can be installed through adb)
- Exit right away on headless system user.
- Removed "Cancel Setup" button.

Test: m -j CarProvision && adb sync && \
      adb shell am force-stop com.android.car.provision && \
      adb shell pm enable --user cur com.android.car.provision && \
      adb shell pm enable --user cur com.android.car.provision/.DefaultActivity && \
      adb shell am start -a android.intent.action.MAIN \
        -c android.intent.category.HOME -c android.intent.category.DEFAULT \
        -c android.intent.category.SETUP_WIZARD

Fixes: 170143095
Bug: 171066617

Change-Id: I8147676d66f207a832d549b23d5f0394b93904f0
6 files changed
tree: 019004af5a252fc78e2216870f015a0d0b3f5077
  1. res/
  2. src/
  3. Android.bp
  4. AndroidManifest.xml
  5. CleanSpec.mk
  6. OWNERS
  7. PREUPLOAD.cfg