Fixes managed provisioning workflow:
- Don't assume it's device owne mode (could be profile as well).
- Added LocalTestDPC.
- Fixed handling of activity results.
Bug: 170333009
Bug: 172867577
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
Change-Id: I902a792825e36ee95a798f78b013ee2077971a85
3 files changed