Disable UI by default so device is automatically provisioned.

To change the behavior, try something like:

  adb root
  adb shell setprop persist.dev.car_provision.show_ui true && \
  adb shell pm enable --user cur com.android.car.provision/.DefaultActivity &&\
  adb shell settings put secure --user cur user_setup_complete 0 && \
  adb shell settings put secure --user 0 user_setup_complete 0 &&\
  adb shell settings put global device_provisioned 0 &&\
  adb shell rm -f /data/system/device_policies_version &&\
  adb shell rm -f /data/system/device_policies.xml &&\
  adb shell rm -f /data/system/device_owner_2.xml ;\
  adb shell rm -f /data/system/users/`adb shell am get-current-user`/profile_owner.xml

  adb shell stop && adb shell start

Test: manual verification
Bug: 190854171

Change-Id: I766c672ea88b35e6e91beeec393fab5efbd9366a
1 file changed
tree: cf6a8e990500faff671bedcd97244a5e747b2d9e
  1. res/
  2. src/
  3. Android.bp
  4. AndroidManifest.xml
  5. CleanSpec.mk
  6. OWNERS
  7. PREUPLOAD.cfg