diff --git a/server/build.gradle b/server/build.gradle index c5925a9e02..ce234d10f1 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -24,9 +24,3 @@ dependencies { } apply from: "$project.rootDir/config/android-checkstyle.gradle" - -android { - lintOptions { - baseline file("lint-baseline.xml") - } -} diff --git a/server/lint-baseline.xml b/server/lint-baseline.xml deleted file mode 100644 index c0045ef96f..0000000000 --- a/server/lint-baseline.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/server/src/main/java/com/genymobile/scrcpy/wrappers/AudioRecordWrapper.java b/server/src/main/java/com/genymobile/scrcpy/wrappers/AudioRecordWrapper.java index 942ea88138..197eb7929e 100644 --- a/server/src/main/java/com/genymobile/scrcpy/wrappers/AudioRecordWrapper.java +++ b/server/src/main/java/com/genymobile/scrcpy/wrappers/AudioRecordWrapper.java @@ -70,7 +70,7 @@ public static String getCurrentOpPackageName(AudioRecord audioRecord) } @TargetApi(Build.VERSION_CODES.R) - @SuppressLint({ "WrongConstant", "MissingPermission" }) + @SuppressLint({ "WrongConstant", "MissingPermission", "BlockedPrivateApi" }) public static AudioRecord newInstance(AudioAttributes attributes, AudioFormat format, int bufferSizeInBytes, int sessionId, Context context, int maxSharedAudioHistoryMs) throws Exception { @@ -289,6 +289,7 @@ public static AudioRecord newInstance(AudioAttributes attributes, AudioFormat fo public static final int PRIVACY_SENSITIVE_DISABLED = 0; public static final int PRIVACY_SENSITIVE_ENABLED = 1; + @SuppressLint({ "BlockedPrivateApi" }) public static AudioRecord build(AudioRecord.Builder builder) { try { Field mFormatField = AudioRecord.Builder.class.getDeclaredField("mFormat");