android-for-cars-parked-apps
Skill này làm gì
Skill này điều chỉnh một ứng dụng video, trò chơi hoặc trình duyệt web Android có sẵn để chạy như ứng dụng khi xe đỗ trên ô tô. Nó dành cho lập trình viên Android muốn ứng dụng của mình đáp ứng các nguyên tắc chất lượng cho ô tô của Google Play.
Khi nào nên dùng
- ✓Khi bạn có một ứng dụng phát video Android và muốn nó hoạt động trên màn hình xe khi xe đỗ.
- ✓Khi bạn muốn xuất bản một trò chơi hoặc trình duyệt web lên Android Auto hoặc Android Automotive.
- ✓Khi bạn cần thiết lập các mục trong manifest và xử lý sự xao nhãng của người lái cho phiên bản ô tô của ứng dụng.
Liên kết skill
https://github.com/android/skills/blob/main/cars/android-for-cars-parked-apps/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Điều chỉnh ứng dụng video Android của tôi để chạy như ứng dụng khi xe đỗ trên Android Auto.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill hướng dẫn các thay đổi mà một ứng dụng hiện có cần, chẳng hạn cài đặt manifest, khai báo phần cứng, điều hướng quay lại và xử lý vòng đời. Mục tiêu là đáp ứng các quy tắc chất lượng ứng dụng trên ô tô.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Adapt existing Android video apps, games, and web browsers to run as parked apps on Android Auto and Android Automotive OS. Follow these steps to meet the car app quality guidelines for Google Play distribution.
Prerequisites
- Begin with an existing adaptive Android app in one of the supported parked app categories: video streaming apps, games, or web browsers.
Glossary
- Parked apps: Parked apps run on Android Auto and Android Automotive OS only while the vehicle is parked. The three parked categories are video, games, and browsers; other categories can't be published as parked apps.
- Android Auto: Android Auto is a phone-powered projection system. Apps execute on the user's phone and are projected to the in-car display over a wired or wireless connection. Android Auto is a separate platform from Android Automotive OS.
- Android Automotive OS: Android Automotive OS, or AAOS, is a variant of Android that runs directly on the vehicle itself. Android Automotive OS is a separate platform from Android Auto.
- Video category: Video apps display streaming videos while parked. Generally available on Android Automotive OS; unsupported on Android Auto.
- Games category: Game apps provide gameplay while parked. Generally available on Android Automotive OS and Android Auto.
- Browsers category: Web browsers let users browse the web while parked. Available in beta on Android Automotive OS; unsupported on Android Auto.
- Media category: Not a parked category. Media apps play audio content (music, radio, audiobooks, excluding video) while driving or parked.
- Android for Cars platform: Android for Cars is an umbrella term that consists of Android Auto and Android Automotive OS.
- Generally available categories: Permitted on internal testing, closed testing, open testing, and production Google Play tracks for a supported platform.
- Beta categories: Permitted on internal or closed testing tracks; open testing and production tracks require acceptance into an early access program.
- Audio while driving: A beta feature on Android Automotive OS that lets video apps play audio while the vehicle is in motion.
- Car app quality guidelines : When auditing an app against the Tier 3 (Car ready ), Tier 2 (Car optimized ), or Tier 1 (Car differentiated ) criteria, MUST check car app quality guidelines.
- Android Automotive OS compatibility mode : Compatibility mode (
android.software.car.display_compatibility) is a system feature on select vehicles providing a system back affordance, safe area rendering, density scaling, and opaque driving-mode blocking (moving activities to Stopped). Compatibility mode is only relevant to apps that support Android Automotive OS; it isn't relevant for apps that only support Android Auto.
Codebase exploration
Search the codebase for AndroidManifest.xml (or create
Assets/Plugins/Android/AndroidManifest.xml in Unity projects),
res/xml/automotive_app_desc.xml, build.gradle, build.gradle.kts,
or gradle/libs.versions.toml files. Locate existing video players,
MediaSession classes, requestedOrientation calls, and WindowInsets
handlers. Unless instructed otherwise by the user, ask permission before adding
dependencies.
Step 1: Configure the app manifest
Declare the app category, target platforms, hardware feature requirements, and
activity configuration in AndroidManifest.xml.
1.1: Identify the app category
- Video apps : Video apps MUST set
android:appCategory="video"on<application>and MUST NOT includeapp/src/main/res/xml/automotive_app_desc.xmlwithuses name="video". - Games : Games MUST set
android:appCategory="game"on<application>. Declareandroid.hardware.gamepadwithandroid:required="false"if controller input is supported by the app. - Browsers : Browsers MUST include
<category android:name="android.intent.category.APP_BROWSER"/>in theMAIN<intent-filter>of an exported<activity>(android:exported="true").
1.2: Identify target platforms and hardware features
- Android Auto : Apps targeting Android Auto (Android 15+) MUST add
<category android:name="android.intent.category.CAR_LAUNCHER"/>to an<intent-filter>in theAndroidManifest.xmlfile. Add it to theMAIN<intent-filter>unless the user specifies a different intent filter. NEVER add
Câu hỏi thường gặp
Những loại ứng dụng nào có thể là ứng dụng khi xe đỗ?
Chỉ ứng dụng phát video, trò chơi và trình duyệt web mới có thể xuất bản như ứng dụng khi xe đỗ.
Nó có hoạt động với mọi ứng dụng ô tô không?
Không. Skill dành cho ứng dụng thuộc nhóm video, trò chơi hoặc trình duyệt, và bắt đầu từ một ứng dụng Android thích ứng có sẵn.
Android Auto có giống Android Automotive không?
Không. Android Auto chạy từ điện thoại, còn Android Automotive chạy trực tiếp trên hệ thống của chính xe.
Chi tiết
Mô tả gốc của tác giả
Adapt existing Android video streaming apps, games, and web browsers to run as parked apps on Android Auto and Android Automotive OS. Covers manifest configuration, Google Play hardware feature declarations, compatibility mode, back navigation affordances, orientation and display continuity, controllable system bar insets, irregular display cutouts, driver distraction lifecycle handling, MediaSession playback restrictions with CarUxRestrictionsManager, background audio while driving, and browser sensitive data protection. Use this skill when migrating, building, or auditing parked apps for car
repo: android/skills
Độ phổ biến
- Sao GitHub
- 10k
- Vị trí xếp hạng
- #11909
- Giấy phép
- Apache-2.0
- Cập nhật
- 29/10/2026
Bình luận
- …
Thêm skill từ kho mã này
agp-9-upgrade
10kGiúp agent của bạn nâng cấp ứng dụng Android lên Android Gradle Plugin 9 và xử lý các thay đổi gây lỗi. Không dành cho dự án đa nền tảng.
camerax
10kGiúp agent của bạn xây dựng các tính năng camera Android bằng CameraX, gồm quay video, điều khiển phần cứng, ML Kit và hiệu ứng Media3.
appfunctions
10kTìm các luồng công việc chính trong ứng dụng Android và công khai chúng dưới dạng AppFunctions để agent AI và lệnh giọng nói có thể chạy.
litert-lm
10kGiúp agent của bạn xây dựng một ứng dụng Android chạy mô hình AI văn bản mở ngay trên thiết bị, dùng API Kotlin của LiteRT-LM.
Skill tương tự
android-clean-architecture
280kGiúp agent của bạn tổ chức dự án Android hiệu quả, cấu trúc code để việc bảo trì và phát triển tính năng mới dễ dàng hơn.
compose-multiplatform-patterns
280kGiúp agent của bạn dùng các mẫu Compose Multiplatform và Jetpack Compose trong dự án KMP, gồm trạng thái, điều hướng, giao diện và hiệu năng.
dart-flutter-patterns
280kGiúp agent của bạn viết code cho ứng dụng Dart và Flutter. Agent dùng các mẫu hiện đại để tạo ứng dụng vững chắc và dễ quản lý.