Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(calls): drop LiveKit's unused screen-share service on Android (#9392)

Peter Chinman68b1fe8e0e2a
diff --git a/apps/web/tauri/src-tauri/gen/android/app/src/main/AndroidManifest.xml b/apps/web/tauri/src-tauri/gen/android/app/src/main/AndroidManifest.xml
index 42dd4b079d..d7a34cbeab 100644
--- a/apps/web/tauri/src-tauri/gen/android/app/src/main/AndroidManifest.xml
+++ b/apps/web/tauri/src-tauri/gen/android/app/src/main/AndroidManifest.xml
@@ -6,6 +6,8 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" tools:node="remove" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:node="remove" />
<uses-permission android:name="android.permission.BATTERY_STATS" tools:node="remove" />
+ <!-- LiveKit ships a screen-share service; Android calls don't share screens. -->
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" tools:node="remove" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
@@ -96,5 +98,9 @@
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
+
+ <service
+ android:name="io.livekit.android.room.track.screencapture.ScreenCaptureService"
+ tools:node="remove" />
</application>
</manifest>
diff --git a/apps/web/tauri/src-tauri/tauri.android.conf.json b/apps/web/tauri/src-tauri/tauri.android.conf.json
index a20753eea3..84132b0ab0 100644
--- a/apps/web/tauri/src-tauri/tauri.android.conf.json
+++ b/apps/web/tauri/src-tauri/tauri.android.conf.json
@@ -2,7 +2,7 @@
"version": "2.5.0",
"bundle": {
"android": {
- "versionCode": 21
+ "versionCode": 22
}
},
"$schema": "https://schema.tauri.app/config/2",
diff --git a/docs/development/android.md b/docs/development/android.md
index abc00fdc18..93e5636ea2 100644
--- a/docs/development/android.md
+++ b/docs/development/android.md
@@ -1076,8 +1076,11 @@ WebView so it keeps its size; from the drawer, the drawer enters PiP and
reopens when Macro returns. PiP uses the same layout as iOS, its menu offers
Mute and Leave, and expanding it reopens the drawer. A tap on a system PiP
always shows Android's menu first. Audio continues in the foreground service
-while backgrounded; camera capture stops once neither the drawer, the thumbnail
-nor PiP is visible. The web call controls can also reopen the drawer.
+(`phoneCall|microphone|camera`) while backgrounded; camera capture stops once
+neither the drawer, the thumbnail nor PiP is visible. The web call controls can
+also reopen the drawer. The app manifest removes LiveKit's unused screen-share
+service and its media-projection permission, so Play sees no `mediaProjection`
+foreground service.
After a debug build generates Tauri's Gradle includes, run the plugin unit tests
from `tauri/src-tauri/gen/android` with