diff --git a/aws-android-sdk-lex/src/main/java/com/amazonaws/mobileconnectors/lex/interactionkit/internal/audio/AudioRecorder.java b/aws-android-sdk-lex/src/main/java/com/amazonaws/mobileconnectors/lex/interactionkit/internal/audio/AudioRecorder.java index f5615c08740..507ea2c6946 100644 --- a/aws-android-sdk-lex/src/main/java/com/amazonaws/mobileconnectors/lex/interactionkit/internal/audio/AudioRecorder.java +++ b/aws-android-sdk-lex/src/main/java/com/amazonaws/mobileconnectors/lex/interactionkit/internal/audio/AudioRecorder.java @@ -15,6 +15,7 @@ package com.amazonaws.mobileconnectors.lex.interactionkit.internal.audio; +import android.annotation.SuppressLint; import android.content.Context; import android.content.pm.PackageManager; import android.media.AudioFormat; @@ -115,6 +116,7 @@ public class AudioRecorder implements AudioSource { * @param format the audio format the audio recorder will use. * @throws Exception if failed to create audio recorder instance. */ + @SuppressLint("MissingPermission") // App Developer should check for Manifest.permission.RECORD_AUDIO permission public AudioRecorder(final Context context, final MediaType mediaType, final int recorderPositionNotificationPeriod, final int sampleRate, final int channels, final int format) throws Exception { diff --git a/aws-android-sdk-testutils/src/main/java/com/amazonaws/testutils/util/AirplaneMode.java b/aws-android-sdk-testutils/src/main/java/com/amazonaws/testutils/util/AirplaneMode.java index 2d766da95dc..fc1183dd8da 100644 --- a/aws-android-sdk-testutils/src/main/java/com/amazonaws/testutils/util/AirplaneMode.java +++ b/aws-android-sdk-testutils/src/main/java/com/amazonaws/testutils/util/AirplaneMode.java @@ -15,6 +15,7 @@ package com.amazonaws.testutils.util; +import android.annotation.SuppressLint; import android.content.ContentResolver; import android.content.Intent; import android.provider.Settings; @@ -44,6 +45,7 @@ public static boolean isEnabled() { return status == 1; } + @SuppressLint("MissingPermission") private static void setAirplaneMode(boolean shouldEnable) { if (shouldEnable == isEnabled()) return;