Skip to content

Your Android phone and your Windows PC, working as one. Local-first, end-to-end encrypted, no account.

Elevated: never send the microphone as the phone's sound

Bee673e7118d624
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d144cf5..aee13b5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -56,6 +56,9 @@ change things that need a step from you, and its notes say so.
follows the resolution actually streaming, whichever side changed it (or
1080p when the phone can't do 4K); upright, the phone's buttons showed none
selected.
+- **Phone sound never falls back to the microphone.** On a phone that blocks
+ capturing what it plays, Elevated recorded the microphone instead and sent
+ it to the PC as the phone's sound. It now sends no sound.
- Android: Phone as webcam no longer crashes the app when its preview
comes back (the same fix covers the QR scanner and Continuity Camera).
- Android: on Hive, the category chips at the top of Settings and the
diff --git a/android/app/src/main/kotlin/app/nectarlink/android/elevated/InputServer.kt b/android/app/src/main/kotlin/app/nectarlink/android/elevated/InputServer.kt
index 374ff1d..c1514ea 100644
--- a/android/app/src/main/kotlin/app/nectarlink/android/elevated/InputServer.kt
+++ b/android/app/src/main/kotlin/app/nectarlink/android/elevated/InputServer.kt
@@ -345,18 +345,8 @@ object InputServer {
if (rec.state == android.media.AudioRecord.STATE_INITIALIZED) return rec
rec.release()
}
- // 3. Fallback to DEFAULT audio source if REMOTE_SUBMIX is restricted on a custom ROM.
- runCatching {
- val rec = android.media.AudioRecord(
- android.media.MediaRecorder.AudioSource.DEFAULT,
- rate,
- channelMask,
- encoding,
- minBuf,
- )
- if (rec.state == android.media.AudioRecord.STATE_INITIALIZED) return rec
- rec.release()
- }
+ // Nothing else: any other source is the microphone, and the PC
+ // asked for what the phone plays, not what it hears.
return null
}