MAOS.git
Publicgit clone https://git.maproj.org/MAOS.gitMAOS.git / patches / sensor_optout_packages_modules_Nfc.patch
sensor_optout_packages_modules_Nfc.patch26 lines · 1.4 KiBRaw
| 1 | diff --git a/NfcNci/AndroidManifest.xml b/NfcNci/AndroidManifest.xml |
| 2 | index bd793e6e5..cad6f5b85 100755 |
| 3 | --- a/NfcNci/AndroidManifest.xml |
| 4 | +++ b/NfcNci/AndroidManifest.xml |
| 5 | @@ -75,6 +75,8 @@ |
| 6 | <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS"/> |
| 7 | |
| 8 | <protected-broadcast android:name="android.nfc.intent.action.WATCHDOG" /> |
| 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=".NfcApplication" |
| 12 | android:icon="@drawable/icon" |
| 13 | android:label="@string/app_name" |
| 14 | diff --git a/NfcNci/NfcMigration/AndroidManifest.xml b/NfcNci/NfcMigration/AndroidManifest.xml |
| 15 | index 734efdf6d..b980a3f18 100755 |
| 16 | --- a/NfcNci/NfcMigration/AndroidManifest.xml |
| 17 | +++ b/NfcNci/NfcMigration/AndroidManifest.xml |
| 18 | @@ -21,6 +21,8 @@ |
| 19 | <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> |
| 20 | <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> |
| 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:label="NFC Migration" |
| 25 | android:directBootAware="true" |
| 26 | android:defaultToDeviceProtectedStorage="true"> |