MAOS.git
Publicgit clone https://git.maproj.org/MAOS.gitMAOS.git / patches / sensor_optout_packages_providers_MediaProvider.patch
sensor_optout_packages_providers_MediaProvider.patch26 lines · 1.3 KiBRaw
| 1 | diff --git a/AndroidManifest.xml b/AndroidManifest.xml |
| 2 | index 15a2c8a64..d616297e1 100644 |
| 3 | --- a/AndroidManifest.xml |
| 4 | +++ b/AndroidManifest.xml |
| 5 | @@ -102,6 +102,8 @@ |
| 6 | <!-- We use Photo Picker app icon and label for this package. It is necessary for Photo Picker |
| 7 | GET_CONTENT take over. Some apps query packages that can handle GET_CONTENT and want to |
| 8 | display the icon and label of the package to the user. --> |
| 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:name="com.android.providers.media.MediaApplication" |
| 13 | android:label="@string/picker_app_label" |
| 14 | diff --git a/photopicker/AndroidManifest.xml b/photopicker/AndroidManifest.xml |
| 15 | index 211db2204..349d99019 100644 |
| 16 | --- a/photopicker/AndroidManifest.xml |
| 17 | +++ b/photopicker/AndroidManifest.xml |
| 18 | @@ -42,6 +42,8 @@ |
| 19 | --> |
| 20 | <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/> |
| 21 | |
| 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:name="com.android.photopicker.PhotopickerApplication" |
| 26 | android:icon="@mipmap/photopicker_app_icon" |