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
tree: 238f12e4ac9d54a241a23b2eed289abec4a40d8e
  1. res/
  2. src/
  3. Android.bp
  4. AndroidManifest.xml
  5. CleanSpec.mk
  6. OWNERS
  7. PREUPLOAD.cfg