• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Top level framework (android.media) flags
2# Only add flags here which must be included in framework.jar
3# Flags used in both framework.jar and native can be added here
4#
5# Please add flags in alphabetical order.
6
7package: "android.media.audio"
8container: "system"
9
10flag {
11    name: "auto_public_volume_api_hardening"
12    namespace: "media_audio"
13    description: "On AAOS, make volume and ringer SDK APIs in AudioManager no-ops."
14    bug: "302751899"
15}
16
17flag {
18    name: "automatic_bt_device_type"
19    namespace: "media_audio"
20    description:
21        "Enable the automatic Bluetooth audio device type "
22        "categorization based on BluetoothDevice class metadata."
23    bug: "302323921"
24}
25
26flag {
27    name: "cache_get_stream_min_max_volume"
28    namespace: "media_audio"
29    description:
30       "Cache getStream[Min|Max]Volume calls between AudioManager and AudioService"
31    bug: "383667500"
32}
33
34flag {
35    name: "cache_get_stream_volume"
36    namespace: "media_audio"
37    description:
38       "Cache getStreamVolume calls between AudioManager and AudioService"
39    bug: "383667500"
40}
41
42flag {
43    name: "concurrent_audio_record_bypass_permission"
44    namespace: "media_audio"
45    description:
46       "New privileged permission to allow bypassing concurrent audio"
47       "capture rules."
48    bug: "374751406"
49    is_exported: true
50}
51
52flag {
53    name: "deprecate_stream_bt_sco"
54    namespace: "media_audio"
55    description: "Deprecate STREAM_BLUETOOTH_SCO"
56    is_exported: true
57    bug: "376756660"
58}
59
60flag {
61    name: "enable_multichannel_group_device"
62    namespace: "media_audio"
63    description:
64        "Enable new audio device type for wireless connected speaker group"
65        "supporting multichannel content."
66    is_exported: true
67    is_fixed_read_only: true
68    bug: "344031109"
69}
70
71flag{
72    name: "enable_ringtone_haptics_customization"
73    namespace: "media_audio"
74    description: "Enables haptic customization for playing ringtone."
75    bug: "351974934"
76}
77
78flag {
79    name: "feature_spatial_audio_headtracking_low_latency"
80    is_exported: true
81    namespace: "media_audio"
82    description: "Define feature for low latency headtracking for SA"
83    bug: "324291076"
84}
85
86flag {
87    name: "focus_exclusive_with_recording"
88    is_exported: true
89    namespace: "media_audio"
90    description:
91        "Audio focus GAIN_TRANSIENT_EXCLUSIVE only mutes"
92        "notifications when the focus owner is also recording"
93    bug: "316414750"
94}
95
96flag {
97    name: "dolby_ac4_level4_encoding_api"
98    namespace: "media_audio"
99    description: "Feature flag for Dolby AC-4 level 4 AudioFormat encoding."
100    is_fixed_read_only: true
101    bug: "266537650"
102    is_exported: true
103}
104
105flag {
106    name: "sony_360ra_mpegh_3d_format"
107    namespace: "media_audio"
108    description: "360 Reality Audio MPEG-H 3D Format"
109    is_fixed_read_only: true
110    bug: "238402306"
111}
112
113# TODO remove
114flag {
115    name: "foreground_audio_control"
116    is_exported: true
117    namespace: "media_audio"
118    description:
119        "Audio focus gain requires FGS or delegation to "
120        "take effect"
121    bug: "296232417"
122    is_fixed_read_only: true
123}
124
125# TODO remove
126flag {
127    name: "focus_freeze_test_api"
128    is_exported: true
129    namespace: "media_audio"
130    description: "\
131 AudioManager audio focus test APIs:\
132 AudioManager.enterAudioFocusFreezeForTest(java.util.List)\
133 AudioManager.exitAudioFocusFreezeForTest()\
134 AudioManager.getFocusDuckedUidsForTest()\
135 AudioManager.getFocusFadeOutDurationForTest()\
136 AudioManager.getFocusUnmuteDelayAfterFadeOutForTest()"
137    bug: "301713440"
138}
139
140flag {
141    name: "hardening_permission_api"
142    is_exported: true
143    namespace: "media_audio"
144    description: "API flag for additional appop/perm constructs for hardening."
145    bug: "376480814"
146}
147
148flag {
149    name: "hardening_permission_spa"
150    is_exported: true
151    namespace: "media_audio"
152    description: "Flag for special app access impl for hardening."
153    bug: "376480814"
154}
155
156flag {
157    name: "iamf_definitions_api"
158    is_exported: true
159    namespace: "media_audio"
160    description: "API definitions for the IAMF format"
161    bug: "337522902"
162}
163
164flag {
165    name: "loudness_configurator_api"
166    is_exported: true
167    namespace: "media_audio"
168    description: "\
169Enable the API for providing loudness metadata and CTA-2075 \
170support."
171    bug: "298463873"
172    is_exported: true
173}
174
175flag {
176    name: "mute_background_audio"
177    namespace: "media_audio"
178    description: "mute audio playing in background"
179    bug: "296232417"
180}
181
182flag {
183    name: "muted_by_port_volume_api"
184    namespace: "media_audio"
185    description: "Playback monitoring flag used when player muted by port volume"
186    bug: "319515324"
187    is_exported: true
188}
189
190flag {
191    name: "ringtone_user_uri_check"
192    is_exported: true
193    namespace: "media_audio"
194    description: "check user for RingtonePlayer URIs"
195    bug: "400434060"
196}
197
198flag {
199    name: "sco_managed_by_audio"
200    is_exported: true
201    namespace: "media_audio"
202    description: "\
203Enable new implementation of headset profile device connection and\
204SCO audio activation."
205    bug: "265057196"
206}
207
208flag {
209    name: "supported_device_types_api"
210    is_exported: true
211    namespace: "media_audio"
212    description: "Surface new API method AudioManager.getSupportedDeviceTypes()"
213    bug: "307537538"
214}
215
216flag {
217    name: "ro_foreground_audio_control"
218    is_exported: true
219    namespace: "media_audio"
220    description:
221        "Audio focus gain requires FGS or delegation to "
222        "take effect"
223    bug: "296232417"
224    is_fixed_read_only: true
225}
226
227flag {
228    name: "ro_volume_ringer_api_hardening"
229    namespace: "media_audio"
230    description: "Limit access to volume and ringer SDK APIs in AudioManager"
231    bug: "296232417"
232    is_fixed_read_only: true
233}
234
235flag {
236    name: "routed_device_ids"
237    namespace: "media_audio"
238    description:
239        "Enable Java and native functions to get"
240        "multiple routed device ids"
241    bug: "367816690"
242    is_exported: true
243}
244
245flag {
246    name: "spatial_audio_settings_versioning"
247    namespace: "media_audio"
248    description: "introduce versioning of spatial audio settings"
249    bug: "377977731"
250}
251
252flag {
253    name: "spatializer_capabilities"
254    namespace: "media_audio"
255    description: "spatializer reports effective channel masks"
256    bug: "377582613"
257    is_exported: true
258}
259
260flag {
261    name: "speaker_cleanup_usage"
262    namespace: "media_audio"
263    description: "Support new AudioAttributes usage for speaker cleanup"
264    bug: "355050846"
265    is_exported: true
266}
267
268flag {
269    name: "speaker_layout_api"
270    namespace: "media_audio"
271    description: "Surface new API method for returning speaker layout channel mask for devices"
272    bug: "337522902"
273    is_exported: true
274}
275
276flag {
277    name: "unify_absolute_volume_management"
278    namespace: "media_audio"
279    description: "Unify absolute volume management in AudioService for A2DP, LEA, SCO, ASHA"
280    is_exported: true
281    bug: "393657380"
282}
283
284# TODO remove
285flag {
286    name: "volume_ringer_api_hardening"
287    namespace: "media_audio"
288    description: "Limit access to volume and ringer SDK APIs in AudioManager"
289    bug: "296232417"
290    is_fixed_read_only: true
291}
292
293flag {
294    name: "register_volume_callback_api_hardening"
295    namespace: "media_audio"
296    description:
297            "Add modify audio settings privilege permission to un/register volume group "
298            "callback APIs"
299    bug: "402502314"
300    is_fixed_read_only: true
301}
302