Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Bug 1874124 - Add foregroundServiceType for Crash Services and FOREGR…
Browse files Browse the repository at this point in the history
…OUND_SERVICE_SPECIAL_USE permission.
  • Loading branch information
mcarare authored and mergify[bot] committed Jan 15, 2024
1 parent 1b43e37 commit 2be68a9
Showing 1 changed file with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<application android:supportsRtl="true">
Expand All @@ -18,17 +18,32 @@

<service android:name=".handler.CrashHandlerService"
android:process=":mozilla.components.lib.crash.CrashHandler"
android:exported="false" />
android:exported="false"
android:foregroundServiceType="specialUse">
<property
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
android:value="This foreground service allows users to report crashes" />
</service>

<!-- Separate process to avoid starting the application when starting this service -->
<service android:name=".service.SendCrashReportService"
android:process=":crashReportingProcess"
android:exported="false" />
android:exported="false"
android:foregroundServiceType="specialUse">
<property
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
android:value="This foreground service allows users to report crashes" />
</service>

<!-- Separate process to avoid starting the application when starting this service -->
<service android:name=".service.SendCrashTelemetryService"
android:process=":crashReportingProcess"
android:exported="false" />
android:exported="false"
android:foregroundServiceType="specialUse">
<property
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
android:value="This foreground service allows users to report crashes" />
</service>
</application>

</manifest>

0 comments on commit 2be68a9

Please sign in to comment.