MAOS.git
Publicgit clone https://git.maproj.org/MAOS.gitMAOS.git / patches / sensor_optout_packages_modules_Connectivity.patch
sensor_optout_packages_modules_Connectivity.patch26 lines · 1.4 KiBRaw
| 1 | diff --git a/Tethering/AndroidManifest.xml b/Tethering/AndroidManifest.xml |
| 2 | index 32442f5314..c9ab47cba6 100644 |
| 3 | --- a/Tethering/AndroidManifest.xml |
| 4 | +++ b/Tethering/AndroidManifest.xml |
| 5 | @@ -50,6 +50,8 @@ |
| 6 | <!-- Sending non-protected broadcast from system uid is not allowed. --> |
| 7 | <protected-broadcast android:name="com.android.server.connectivity.tethering.DISABLE_TETHERING" /> |
| 8 | |
| 9 | + <!-- MAOS: opt out of the GrapheneOS Sensors permission (never requested nor granted). --> |
| 10 | + <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" /> |
| 11 | <application |
| 12 | android:process="com.android.networkstack.process" |
| 13 | android:extractNativeLibs="false" |
| 14 | diff --git a/service/ServiceConnectivityResources/AndroidManifest.xml b/service/ServiceConnectivityResources/AndroidManifest.xml |
| 15 | index 71901f5a1a..820515cee6 100644 |
| 16 | --- a/service/ServiceConnectivityResources/AndroidManifest.xml |
| 17 | +++ b/service/ServiceConnectivityResources/AndroidManifest.xml |
| 18 | @@ -22,6 +22,8 @@ |
| 19 | coreApp="true" |
| 20 | android:versionCode="1" |
| 21 | android:versionName="S-initial"> |
| 22 | + <!-- MAOS: opt out of the GrapheneOS Sensors permission (never requested nor granted). --> |
| 23 | + <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" /> |
| 24 | <application |
| 25 | android:label="@string/connectivityResourcesAppLabel" |
| 26 | android:defaultToDeviceProtectedStorage="true" |