Modern Apps git

← Modern-Apps.git

code: declare INTERNET for HTTPS git cloning

Commit
090e7a79e881250a15b70ce86b7ec09cae2fe3b8
Author
Vayun Mathur <[email protected]>
When
2026-11-08 17:42 UTC (27 days ago)
Parents
0bb73d4
GitPage exposes HTTPS cloning through GitRepo.clone, which opens network sockets, but the app declared no INTERNET permission and pulls none transitively. Cloning currently fails at runtime with a permission denial. Declare INTERNET directly.

Diff

code/src/main/AndroidManifest.xml
diff --git a/code/src/main/AndroidManifest.xml b/code/src/main/AndroidManifest.xmlindex 2ed5a378b1..5d64aa1e41 100644--- a/code/src/main/AndroidManifest.xml+++ b/code/src/main/AndroidManifest.xml@@ -6,6 +6,9 @@     <!-- Sensors permission at install instead of auto-granting it. -->     <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" /> +    <!-- GitPage offers HTTPS cloning (GitRepo.clone); that needs sockets. -->+    <uses-permission android:name="android.permission.INTERNET" />+     <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />      <application