From 5e757204d327d3a620d7da6d817abe5947ad9937 Mon Sep 17 00:00:00 2001 From: Mathew Inwood Date: Thu, 30 May 2019 15:26:56 +0100 Subject: [PATCH] Move two audio APIs back the the greylist. These APIs are used by older versions of the unity game engine, and many of these games are not in a position where they are able to update unity. To keep these games working now and in the future, leave these APIs on the derestricted greylist. Bug: 134049522 Test: m Change-Id: I541ed6fbacfc1e405a319af5c2ff785625afb26a --- media/java/android/media/AudioSystem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media/java/android/media/AudioSystem.java b/media/java/android/media/AudioSystem.java index 987db8bedea78..fde0e640d92c4 100644 --- a/media/java/android/media/AudioSystem.java +++ b/media/java/android/media/AudioSystem.java @@ -990,9 +990,9 @@ public class AudioSystem public static native int setMasterBalance(float balance); // helpers for android.media.AudioManager.getProperty(), see description there for meaning - @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 112561552) + @UnsupportedAppUsage(trackingBug = 134049522) public static native int getPrimaryOutputSamplingRate(); - @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 112561552) + @UnsupportedAppUsage(trackingBug = 134049522) public static native int getPrimaryOutputFrameCount(); @UnsupportedAppUsage public static native int getOutputLatency(int stream);