Modern Apps git

MAOS.git

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

MAOS.git / patches / sensor_optout_packages_apps_Launcher3.patch

sensor_optout_packages_apps_Launcher3.patch26 lines · 1.3 KiBRaw
1diff --git a/AndroidManifest.xml b/AndroidManifest.xml
2index 2579786d50..d20ea6bf40 100644
3--- a/AndroidManifest.xml
4+++ b/AndroidManifest.xml
5@@ -30,6 +30,8 @@
6 <permission android:name="${applicationId}.permission.START_WIDGET_PICKER_ACTIVITY"
7 android:protectionLevel="signature|privileged" />
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:backupAgent="com.android.launcher3.LauncherBackupAgent"
13 android:fullBackupOnly="true"
14diff --git a/quickstep/AndroidManifest.xml b/quickstep/AndroidManifest.xml
15index 789e0a5263..e1ffcf0a22 100644
16--- a/quickstep/AndroidManifest.xml
17+++ b/quickstep/AndroidManifest.xml
18@@ -75,6 +75,8 @@
19 android:name="com.android.documentsui.LAUNCH_FILE_MANAGER"
20 android:featureFlag="com.android.launcher3.show_files_on_home_screen" />
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:backupAgent="com.android.launcher3.LauncherBackupAgent"
25 android:enableOnBackInvokedCallback="true"
26 android:fullBackupOnly="true"