MAOS.git
Publicgit clone https://git.maproj.org/MAOS.gitMAOS.git / patches / sensor_optout_packages_modules_AdServices.patch
sensor_optout_packages_modules_AdServices.patch26 lines · 1.3 KiBRaw
| 1 | diff --git a/adservices/apk/AndroidManifest.xml b/adservices/apk/AndroidManifest.xml |
| 2 | index 87bb160ebc..f01144c5c1 100644 |
| 3 | --- a/adservices/apk/AndroidManifest.xml |
| 4 | +++ b/adservices/apk/AndroidManifest.xml |
| 5 | @@ -149,6 +149,8 @@ |
| 6 | <!-- Required for sending measurement events --> |
| 7 | <uses-permission android:name="android.permission.ondevicepersonalization.NOTIFY_MEASUREMENT_EVENT"/> |
| 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_label" |
| 13 | android:forceQueryable="true" |
| 14 | diff --git a/sdksandbox/SdkSandbox/AndroidManifest.xml b/sdksandbox/SdkSandbox/AndroidManifest.xml |
| 15 | index 228e014f39..2d963c8576 100644 |
| 16 | --- a/sdksandbox/SdkSandbox/AndroidManifest.xml |
| 17 | +++ b/sdksandbox/SdkSandbox/AndroidManifest.xml |
| 18 | @@ -39,6 +39,8 @@ |
| 19 | <uses-permission android:name="android.permission.ACCESS_ADSERVICES_ATTRIBUTION" /> |
| 20 | <uses-permission android:name="android.permission.ACCESS_ADSERVICES_CUSTOM_AUDIENCE" /> |
| 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:usesNonSdkApi="false" |
| 26 | android:forceQueryable="true" |