[DESCRIPTION]
AudioFrequencyMicrophoneTest
AudioFrequencySpeakerTest
AudioFrequencyUnprocessedTest
这三条需要连接USB microphone麦克风才能测试
USB Audio Peripheral Attributes Test
USB Audio Peripheral Buttons Test
USB Audio Peripheral Play Test
USB Audio Peripheral Record Test
这四条需要连接USB Audio headset耳机才能测试
看源码,看源码,这几个测项唯一需要依赖的硬件就是usb host:
/cts/apps/CtsVerifier/AndroidManifest.xml
2826 <activity android:name=".audio.USBAudioPeripheralAttributesActivity"
2827 android:label="@string/audio_uap_attribs_test">
2828 <intent-filter>
2829 <action android:name="android.intent.action.MAIN" />
2830 <category android:name="android.cts.intent.category.MANUAL_TEST" />
2831 </intent-filter>
2832 <meta-data android:name="test_category" android:value="@string/test_category_audio" />
2833 <meta-data android:name="test_required_features" android:value="android.hardware.usb.host" /> //请看这里
2834 </activity>
[SOLUTION]
因此,关闭android.hardware.usb.host这个feature 就行了。 具体是将/frameworks/native/data/etc/android.hardware.usb.host.xml中的这一行注释或者移除;