Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f3a15e4 authored by Robert Wu's avatar Robert Wu
Browse files

Update AAudioStreamBuilder_setPackageName notes

We discovered that requestStart sometimes returns -896,
an internal error. This error comes from mic permissions
not being correct on input streams when an invalid package
name is used. This fix is to update documentation.

Bug: 193684488
Test: Tested with OboeTester and ran Oboe tests
Change-Id: I76c0ff59a3a0c51f01471ad8d06fbff25b629436
parent dd0e31e4
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -643,8 +643,11 @@ AAUDIO_API void AAudioStreamBuilder_setDeviceId(AAudioStreamBuilder* builder,
 * This is usually {@code Context#getPackageName()}.
 *
 * The default, if you do not call this function, is a random package in the calling uid.
 * The vast majority of apps have only one package per calling UID. If the package
 * name does not match the calling UID, then requests will be rejected.
 * The vast majority of apps have only one package per calling UID.
 * If an invalid package name is set, input streams may not be given permission to
 * record when started.
 *
 * The package name is usually the applicationId in your app's build.gradle file.
 *
 * Available since API level 31.
 *