MAOS.git
Publicgit clone https://git.maproj.org/MAOS.gitMAOS.git / patches / sensor_optout_packages_modules_WebApp.patch
sensor_optout_packages_modules_WebApp.patch26 lines · 1.4 KiBRaw
| 1 | diff --git a/service/AndroidManifest.xml b/service/AndroidManifest.xml |
| 2 | index 4370ddb..44a801e 100644 |
| 3 | --- a/service/AndroidManifest.xml |
| 4 | +++ b/service/AndroidManifest.xml |
| 5 | @@ -29,6 +29,8 @@ |
| 6 | <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" /> |
| 7 | <uses-permission android:name="android.permission.SUBSTITUTE_NOTIFICATION_APP_NAME" /> |
| 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:label="@string/app_name" |
| 13 | android:forceQueryable="true"> |
| 14 | diff --git a/template/AndroidManifest.xml b/template/AndroidManifest.xml |
| 15 | index aeb8b0a..f36111d 100644 |
| 16 | --- a/template/AndroidManifest.xml |
| 17 | +++ b/template/AndroidManifest.xml |
| 18 | @@ -33,6 +33,8 @@ |
| 19 | |
| 20 | <permission android:name="com.android.webapp.template.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" android:protectionLevel="signature"/> |
| 21 | <uses-permission android:name="com.android.webapp.template.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION"/> |
| 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:allowBackup="false" |
| 26 | android:appComponentFactory="androidx.core.app.CoreComponentFactory" |