Fix BluetoothA2dpTest#test_getCodecStatus.

The API requires BLUETOOTH_PRIVILEGED permission and the test was
updated to reflect the functionality of the API.

Bug: 228405960
Test: atest BluetoothA2dpTest#test_getCodecStatus
Change-Id: I8beccb26101f5d5fe2b739206f64099ec3b31463
diff --git a/tests/tests/bluetooth/src/android/bluetooth/cts/BluetoothA2dpTest.java b/tests/tests/bluetooth/src/android/bluetooth/cts/BluetoothA2dpTest.java
index ca44d16..515f0ef 100644
--- a/tests/tests/bluetooth/src/android/bluetooth/cts/BluetoothA2dpTest.java
+++ b/tests/tests/bluetooth/src/android/bluetooth/cts/BluetoothA2dpTest.java
@@ -143,6 +143,7 @@
     public void test_getCodecStatus() {
         if (!(mHasBluetooth && mIsA2dpSupported)) return;
 
+        mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED);
         assertTrue(waitForProfileConnect());
         assertNotNull(mBluetoothA2dp);