amosproj / amos2022ws02-automotive-test-app

Android Automotive Testapp
MIT License
12 stars 0 forks source link

Implement popup upon receiving specific ADB command #187

Closed i315315 closed 1 year ago

i315315 commented 1 year ago

User story

  1. As a user
  2. I want to be able to trigger a system popup via an ADB command that does not count as a user-triggered interaction with the UI
  3. So that I can test if CarPlay starts again the next time I start my car, when it was running the last time I used my car.

With this user story, it should be implemented that I can trigger a popup with an ADB command. The popup should then be opened in the system (see section "Notes" for details to the permission). It should only be possible to trigger popup once the boot of the system has been completed. Therefore, a BroadcastReceiver with an intent-filter (see details in section "Notes") should be implemented.

Acceptance criteria

Notes

Permission: android.permission.START_ACTIVITIES_FROM_BACKGROUND BroadcastReceiver mit einem intent-filter android.intent.action.BOOT_COMPLETED

Background information

When starting your car, it checks whether the last time you used your car, Apple CarPlay was running when you parked your car. If CarPlay was running, it will start again automatically when restarting your car the next time. However, if there was an interaction with the native system of the car after CarPlay stopped running, it will not start automatically next time you start your car. BUT: if the interaction was triggered by the native system, e.g., because you had to confirm a popup that your fuel level is low, this interaction should not affect whether CarPlay starts again the next time you start your car.

Definition of done (DoD)

DoD general criteria