google / oboe

Oboe is a C++ library that makes it easy to build high-performance audio apps on Android.
Apache License 2.0
3.72k stars 572 forks source link

Why starting output test with enabling foreground service will require recording permission #2105

Closed flamme closed 1 month ago

flamme commented 2 months ago

From the code, when launching test output with foreground service enabled, it asks for recording permission.

AFAIK, OboeTester doesn't recording from TEST OUTPUT.

flamme commented 2 months ago

It looks like the OboeTester is always asking for accessing microphone with foreground service. See code. https://github.com/google/oboe/blob/main/apps/OboeTester/app/src/main/java/com/mobileer/oboetester/AudioForegroundService.java#L68

Will it be better to only ask for what is needed?