Skip to content
프로젝트

소개

Android AppFunctions 샘플

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+1
in 7 days
+2
in 15 days
+6
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

AppFunctions Samples

This repository contains Android sample code demonstrating the usage of AppFunctions to provide application functionality to system services and agents.

Projects

This repository contains two primary projects. An API sample and a testing agent.

1. ChatApp sample

The ChatApp sample showcases how a communication app can provide its core features to the Android intelligence system. It serves as an educational reference for implementing AppFunctions. It is a functional chat application built with Jetpack Compose and Hilt, demonstrating AppFunctions usage across both mobile and Wear OS form factors.

  • Location: ChatApp
  • Structure:
    • app: Main mobile chat application.
    • wear: Wear OS companion chat application.
    • shared: Common data repositories, ViewModels, and AppFunction service definitions.
  • Features: Sending messages, searching contacts, and initiating calls via AppFunctions.

2. AppFunctions Testing Agent

The AppFunctions Testing Agent is a testing and debugging tool for Android AppFunctions. It is designed to help developers verify their integrations, troubleshoot execution issues, and evaluate AppFunctions using both manual deterministic inputs and an LLM-based agent.

  • Location: agent
  • Documentation: See the Agent README for full building, running, and testing instructions.
  • Features: Privileged AppFunction execution, manual debugging, test automation, and LLM agent evaluations.

Setup Guide

Follow these steps to explore and run the samples:

  1. Prerequisites:
    • Android Studio.
    • Android SDK 36+.
    • A device or emulator running Android 16 (API 36) or higher.
  2. Clone the Repository:
    git clone https://github.com/android/appfunctions.git
    
  3. Open in Android Studio:
    • Open Android Studio and select Open.
    • Navigate to the specific project directory (e.g., ChatApp or agent) and click OK.
  4. Sync and Build: Wait for the Gradle sync to complete and build the project (Build > Make Project).
  5. Run: For ChatApp, click Run > Run 'app' to deploy the mobile sample to your phone/emulator, or Run > Run 'wear' to deploy the companion app to a Wear OS device/emulator. For agent, refer to the Agent README for privileged launch instructions (./run_privileged.sh).

Contributing

We'd love to accept your patches and contributions!

  • Contributor License Agreement (CLA): All contributors must sign the Google CLA.
  • Code Style: We use Spotless to maintain consistent formatting. Run ./gradlew spotlessApply before committing.
  • Testing: Ensure all new functionality is covered by unit or instrumentation tests.
  • Reviews: All submissions are reviewed via GitHub Pull Requests.

See CONTRIBUTING.md for more detailed information.

Resources


License: Apache 2.0. See LICENSE for details.

관련 프로젝트 살펴보기

불러오는 중…