<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

    <application>
        <!-- enabled is gated by the app's `carTemplatesEnabled` manifest placeholder: off by default
             (production ships notification-only car messaging), on for -PenableCarTemplates=true builds.
             The decisive gate is automotive_app_desc's <uses name="template" /> (see res/xml); this is
             defense-in-depth so the templated service can't be bound in production. -->
        <service
            android:name="org.meshtastic.feature.car.service.MeshtasticCarAppService"
            android:enabled="${carTemplatesEnabled}"
            android:exported="true"
            android:permission="androidx.car.app.CarAppService">
            <intent-filter>
                <action android:name="androidx.car.app.CarAppService" />
                <category android:name="androidx.car.app.category.MESSAGING" />
            </intent-filter>
        </service>

        <meta-data
            android:name="androidx.car.app.minCarApiLevel"
            android:value="7" />

        <!-- Required for Android Auto to surface MessagingStyle notifications and recognize the
             template app. Without this the automotive_app_desc declarations never reach the host. -->
        <meta-data
            android:name="com.google.android.gms.car.application"
            android:resource="@xml/automotive_app_desc" />
    </application>
</manifest>
