0

I added support for the ACTION_NAVIGATE intent as described in the Android Auto navigation apps documentation and would like to test the result.
Is there any way to test it via ADB? I tried sending intents to the service component, but it does not work. CarAppService does not call startCarApp neither onNewIntent(). Also tried to send the previous lib version intent.

Tried:

  • adb shell am broadcast -n 'com.sometestapp/.SomeCarAppService' -a 'androidx.car.app.action.NAVIGATE' -d 'geo:12.345,14.8767'
  • adb shell am broadcast -n 'com.sometestapp/.SomeCarAppService' -a 'com.google.android.libraries.car.app.action.NAVIGATE' -d 'geo:12.345,14.8767'
  • adb shell am broadcast -a 'androidx.car.app.action.NAVIGATE' -d 'geo:12.345,14.8767'
  • adb shell am broadcast -a 'com.google.android.libraries.car.app.action.NAVIGATE' -d 'geo:12.345,14.8767'