AndroidAuto一般在AndroidManifest.xml注册的Activity配置过滤监听特定手机的USB插拔启动AA
<activity
android:name=".sink.ui.MainActivity"
android:configChanges="keyboard|keyboardHidden|uiMode"
android:windowSoftInputMode="stateHidden"
android:launchMode="singleInstance"
android:exported="true"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED" />
</intent-filter>