android: playback capture of one app, or of every app but us
ScreenCaptureService now keeps any number of AudioPlaybackCapture recordings by id instead of a single one. Each matches media, game and unknown usages, and either the uid of one app (addMatchingUid) or every uid but ours (excludeUid), so a shared screen no longer carries our own voices and watched streams. Recording 0 still feeds Native.onSystemAudio; the others feed Native.onAudioInput(id, ...), which goes to the stream mixer's inputs. Bridge gains startAudioInput(id, package or null), which maps the package to its uid, plus stopAudioInput(id) and launchableApps(). The manifest declares a launcher-intent <queries> so those apps and their uids are visible on Android 11+. Compiled with gradlew compileDebugKotlin. javap shows the JNI signatures match crates/voelin-android/src/bridge.rs. Not run on a device. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
4 files changed
+130
-23
No files matched your search
@@ -11,6 +11,17 @@
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
|
||||
<!--
|
||||
Launchable apps are visible (Android 11+ package visibility): the
|
||||
list of apps whose sound a screen share can carry, and their uids.
|
||||
-->
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent>
|
||||
</queries>
|
||||
|
||||
<!-- Slint renders with OpenGL ES. -->
|
||||
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
|
||||
|
||||
|
||||
Reference in new issue
Block a user