Modern Apps git

MAOS.git

Public
git clone https://git.maproj.org/MAOS.git
main ▾

MAOS.git / patches / sensor_optout_packages_modules_OnDevicePersonalization.patch

sensor_optout_packages_modules_OnDevicePersonalization.patch26 lines · 1.3 KiBRaw
1diff --git a/AndroidManifest.xml b/AndroidManifest.xml
2index 77027b6b..66af40fa 100644
3--- a/AndroidManifest.xml
4+++ b/AndroidManifest.xml
5@@ -55,6 +55,8 @@
6
7 <uses-permission android:name="android.permission.ondevicepersonalization.ACCESS_SYSTEM_SERVER_SERVICE" />
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 android:name=".OnDevicePersonalizationApplication"
12 android:forceQueryable="true">
13 <service android:name=".OnDevicePersonalizationManagingServiceImpl" android:exported="true" >
14diff --git a/federatedcompute/apk/AndroidManifest.xml b/federatedcompute/apk/AndroidManifest.xml
15index 595bb586..7e369ada 100644
16--- a/federatedcompute/apk/AndroidManifest.xml
17+++ b/federatedcompute/apk/AndroidManifest.xml
18@@ -40,6 +40,8 @@
19 <uses-permission
20 android:name="android.permission.BIND_EXAMPLE_STORE_SERVICE" />
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 android:forceQueryable="true">
25 <service android:name=".FederatedComputeManagingServiceImpl" android:exported="true">
26 <intent-filter>