Modern Apps git

← Modern-Apps.git

translate: declare INTERNET directly for model downloads

Commit
0bb73d492c8e180143e80b216d88d15dfb3ec6ce
Author
Vayun Mathur <[email protected]>
When
2026-11-08 17:42 UTC (27 days ago)
Parents
f311f81
The NLLB model fetch (via :library:downloadservice) is a network operation, but the app never declared INTERNET itself — it only received it transitively through the library manifest. Declare it directly so the permission survives any future trimming of the library's manifest.

Diff

translate/src/main/AndroidManifest.xml
diff --git a/translate/src/main/AndroidManifest.xml b/translate/src/main/AndroidManifest.xmlindex 3b1ace791f..927d08aa51 100644--- a/translate/src/main/AndroidManifest.xml+++ b/translate/src/main/AndroidManifest.xml@@ -6,6 +6,10 @@     <!-- Sensors permission at install instead of auto-granting it. -->     <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" /> +    <!-- NLLB model downloads are network fetches: declare INTERNET directly -->+    <!-- instead of riding it transitively from :library:downloadservice. -->+    <uses-permission android:name="android.permission.INTERNET" />+     <uses-permission android:name="android.permission.CAMERA" />     <uses-permission android:name="android.permission.RECORD_AUDIO" />