Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove unused RECORD_AUDIO permission from merged manifest

ashilkne2e7f2dfd806
diff --git a/mobile/apps/photos/android/app/src/main/AndroidManifest.xml b/mobile/apps/photos/android/app/src/main/AndroidManifest.xml
index c0e408ce32..73bcfb7f74 100644
--- a/mobile/apps/photos/android/app/src/main/AndroidManifest.xml
+++ b/mobile/apps/photos/android/app/src/main/AndroidManifest.xml
@@ -2,6 +2,11 @@
xmlns:tools="http://schemas.android.com/tools"
package="io.ente.photos">
<uses-permission android:name="android.permission.CAMERA" />
+ <!-- The camera plugin unconditionally adds RECORD_AUDIO to the merged
+ manifest even when enableAudio is set to false. We don't record audio
+ anywhere, so strip it from the final build. -->
+ <uses-permission android:name="android.permission.RECORD_AUDIO"
+ tools:node="remove" />
<application android:name="${applicationName}"
android:label="@string/app_name"
android:icon="@mipmap/icon_green"