[Draft] Re-Implement App Install flow #33959
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Re-Implementing application installation flow
Problem
Current application installation flow blocks commissioning and has too crude functionality that cannot provide great UX (providing installation percentage etc.)
Change overview
Tests
Build the TV app using command:
scripts/examples/gn_build_example.sh examples/tv-app/linux out/debug/
Build the TV casting app using command:
scripts/examples/gn_build_example.sh examples/tv-casting-app/linux out/debug/
Start TV App
out/debug/chip-tv-app
Start TV Casting App
out/debug/chip-tv-casting-app
On TV App: Uninstall the app
app uninstall 65521 32769
On TV Casting App: Send casting request to the tv-app using
cast request 0
On TV App: Accepted the Cast request from the tv-casting app
controller ux ok
On TV casting app: Send Application Basic command
cast cluster applicationbasic read status 0 4
Note that you'll see the response
Status: 4
which stands forkNotInstalled
---------- TBA --------
9. On TV app: Run App install command
app install 65521 32769
This should update the app status to
kInstalled