Moved the logic for talking to the system service into a service in the app - this now lets you close the activity and still be able to receive events. Additionally, we get CLI support using commands with the intent com.android.intent.action.MANAGE_SOUND_TRIGGER. Bug: 29073629 Change-Id: Ie904b73b4414f2c9fded013aeb5e6c6c3a67f5d3
29 lines
1.3 KiB
XML
29 lines
1.3 KiB
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.android.test.soundtrigger">
|
|
<uses-permission android:name="android.permission.CAPTURE_AUDIO_HOTWORD" />
|
|
<uses-permission android:name="android.permission.MANAGE_SOUND_TRIGGER" />
|
|
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
<application>
|
|
<activity
|
|
android:name=".SoundTriggerTestActivity"
|
|
android:label="SoundTrigger Test Application"
|
|
android:screenOrientation="portrait"
|
|
android:theme="@android:style/Theme.Material">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
<service
|
|
android:name=".SoundTriggerTestService"
|
|
android:stopWithTask="false"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="com.android.intent.action.MANAGE_SOUND_TRIGGER" />
|
|
</intent-filter>
|
|
</service>
|
|
</application>
|
|
</manifest>
|