Prd/components/dialer-patch/patches/0004-android-bp-record-audio-pregrant.patch
Lucy Doupalů be9f14ce34 Helpdesk - operator console + patched GrapheneOS Dialer for call handling
A small helpdesk system: an office Pixel running a patched GrapheneOS Dialer
answers technician calls, records both call legs as separate channels, and a
Ruby backend transcribes them through Whisper and files an AI summary against
the caller.

Squashed to a single commit for sharing. No credentials are included; secrets
live outside the repo in /etc/helpdesk/env on the server or a gitignored
.claude/env.local locally. See .claude/env.local.example for the shape.

Start at README.md, then docs/architecture.md.
2026-07-27 18:50:32 +02:00

25 lines
800 B
Diff

diff --git a/Android.bp b/Android.bp
index e754c5751..e1dba60b5 100644
--- a/Android.bp
+++ b/Android.bp
@@ -339,10 +339,20 @@ android_app {
product_specific: true,
required: [
"privapp_whitelist_com.android.dialer",
+ "etc_default-permissions_com.android.dialer", // Helpdesk patch: pre-grant RECORD_AUDIO
],
uses_libs: ["org.apache.http.legacy"],
}
+// Helpdesk patch: pre-grant RECORD_AUDIO to the Dialer (auto-record needs it without a prompt).
+prebuilt_etc {
+ name: "etc_default-permissions_com.android.dialer",
+ src: "etc/default-permissions/com.android.dialer.xml",
+ sub_dir: "default-permissions",
+ filename_from_src: true,
+ product_specific: true,
+}
+
java_library_host {
name: "dialer-rootcomponentprocessor",
srcs: [