Skip to content

Commit

Permalink
Suppress ProtectedPermissions lint error with a note
Browse files Browse the repository at this point in the history
  • Loading branch information
ashiagr committed Nov 1, 2024
1 parent a0d837a commit ca36bbc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<uses-permission android:name="com.android.vending.CHECK_LICENSE"/>
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<!-- App request this permission from the user using recommended canScheduleExactAlarms() API before scheduling exact alarms
https://developer.android.com/about/versions/14/changes/schedule-exact-alarms#migration -->
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" tools:ignore="ProtectedPermissions" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />

Expand Down
4 changes: 3 additions & 1 deletion modules/services/repositories/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<!-- App request this permission from the user using recommended canScheduleExactAlarms() API before scheduling exact alarms
https://developer.android.com/about/versions/14/changes/schedule-exact-alarms#migration -->
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" tools:ignore="ProtectedPermissions" />

<application android:usesCleartextTraffic="true">
<provider
Expand Down
4 changes: 3 additions & 1 deletion wear/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<!-- App request this permission from the user using recommended canScheduleExactAlarms() API before scheduling exact alarms
https://developer.android.com/about/versions/14/changes/schedule-exact-alarms#migration -->
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" tools:ignore="ProtectedPermissions" />
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.android.vending.BILLING" />
Expand Down

0 comments on commit ca36bbc

Please sign in to comment.