-
Notifications
You must be signed in to change notification settings - Fork 1.9k
android: strip BOOT_COMPLETED receivers from merged manifest (#4832) #7158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,8 @@ | |
| <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | ||
|
|
||
| <uses-permission android:name="android.permission.VIBRATE" /> | ||
| <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | ||
| <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" | ||
| tools:node="remove" /> | ||
| <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> | ||
|
|
||
|
|
||
|
|
@@ -89,6 +90,13 @@ | |
| android:foregroundServiceType="microphone" | ||
| tools:node="merge" /> | ||
|
|
||
| <receiver | ||
| android:name="com.pravera.flutter_foreground_task.service.RebootReceiver" | ||
| tools:node="remove" /> | ||
| <receiver | ||
| android:name="id.flutter.flutter_background_service.BootReceiver" | ||
| tools:node="remove" /> | ||
|
Comment on lines
+93
to
+98
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
These |
||
|
|
||
| <service | ||
| android:name=".NotificationOnKillService" | ||
| android:enabled="true" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tools:node="remove"on the app-level<uses-permission>removes the app's own declaration and, in the merger's conflict-resolution pass, prevents lower-priority manifests from winning for the same key. The PR's own verification run (grep -c RECEIVE_BOOT_COMPLETED merged-fixed-clean.xml→ 0) confirms this works end-to-end. No action needed — this note is purely for reviewer awareness, and the test plan steps withaapt2 dumpon the produced APK will provide definitive confirmation.