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