Skip to content

Adopt @AppFunctionUriValueConstraint in ChatApp and Agent - #55

Open
calebareeveso wants to merge 1 commit into
android:mainfrom
calebareeveso:feature/appfunction-uri-snapshot-16181473
Open

calebareeveso wants to merge 1 commit into
android:mainfrom
calebareeveso:feature/appfunction-uri-snapshot-16181473

Conversation

@calebareeveso

Copy link
Copy Markdown
Contributor

Reference PR: This PR demonstrates how to adopt @AppFunctionUriValueConstraint across target apps and the agent orchestrator. It currently builds against snapshot build 16181473.

Why & What:

  • ChatApp: Replaces manual URI scheme validation in updateChatWallpaper with declarative @AppFunctionUriValueConstraint(allowedSchemes = [ContentResolver.SCHEME_CONTENT]).
  • Agent App: Replaces hardcoded parameter name lists (KNOWN_FILE_REFERENCE_PARAM_NAMES) with schema-driven metadata checks (format == FORMAT_URI and pattern). The agent dynamically detects URI parameters, downloads remote images, and bridges them to content:// URIs with granted read permissions.

This serves as a reference implementation for updating the sample apps.

Reference PR: Demonstrates how to adopt @AppFunctionUriValueConstraint across target apps and the agent orchestrator. Builds against snapshot build 16181473.

Change-Id: I2a151eefa493871c5afd571f880149e4f1504ee3
@calebareeveso
calebareeveso requested a review from a team as a code owner August 28, 2026 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant