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
74 lines
3.2 KiB
XML
74 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
<!-- Voice, and capturing what the device plays while sharing the screen. -->
|
|
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
|
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
|
|
<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" />
|
|
|
|
<!--
|
|
allowBackup=false: the database holds the TeamSpeak identity (a
|
|
private key) and the Keystore key of the saved passwords cannot be
|
|
restored on another device anyway.
|
|
-->
|
|
<application
|
|
android:name=".VoelinApp"
|
|
android:allowBackup="false"
|
|
android:hasCode="true"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:theme="@style/Theme.Voelin">
|
|
|
|
<!--
|
|
The Rust UI runs in this NativeActivity (android.app.lib_name).
|
|
Configuration changes (rotation, keyboard, dark mode) are handled
|
|
by the native side instead of recreating the activity.
|
|
-->
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboard|keyboardHidden|navigation|uiMode|density|fontScale|locale|layoutDirection"
|
|
android:exported="true"
|
|
android:launchMode="singleTask"
|
|
android:windowSoftInputMode="adjustResize">
|
|
<meta-data
|
|
android:name="android.app.lib_name"
|
|
android:value="voelin_android" />
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<!-- Keeps the microphone and the connection while in the background. -->
|
|
<service
|
|
android:name=".VoiceService"
|
|
android:exported="false"
|
|
android:foregroundServiceType="microphone" />
|
|
|
|
<!-- Holds the MediaProjection while the screen is shared. -->
|
|
<service
|
|
android:name=".ScreenCaptureService"
|
|
android:exported="false"
|
|
android:foregroundServiceType="mediaProjection" />
|
|
</application>
|
|
</manifest>
|