Re-send factory reset request when CarService crashes.
Manually verified using the following commands with TestDpc:
$ adb install --user all TestDPC-normal-debug.apk
$ adb shell dpm set-device-owner --user 0 com.afwsamples.testdpc/.DeviceAdminReceiver'
$ adb shell dumpsys activity service --user 0 com.afwsamples.testdpc wipe-data
$ adb shell kill `adb shell ps |egrep "com.android.car$" | awk '{print $2}' | xargs`
$ adb shell dumpsys car_service suspend
$ adb shell dumpsys car_service resume
Test: atest com.android.internal.car.CarServiceProxyTest
Test: manual verification (see above)
Bug: 171603586
Change-Id: Id3f4f9d6b2b5977e365a737ccecb442c071a536b
2 files changed