Skip to content

Commit

Permalink
Request FOREGROUND_SERVICE_SPECIAL_USE for debug log service
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Oct 28, 2023
1 parent da11961 commit 0c8b121
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />

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

<uses-feature
android:name="android.hardware.bluetooth_le"
Expand All @@ -26,9 +27,9 @@
<activity
android:name=".main.ui.MainActivity"
android:exported="true"
android:theme="@style/AppThemeSplash"
android:label="@string/app_name"
android:launchMode="singleTop">
android:launchMode="singleTop"
android:theme="@style/AppThemeSplash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down Expand Up @@ -76,7 +77,13 @@
android:name=".common.debug.recording.ui.RecorderActivity"
android:theme="@style/AppThemeFloating" />

<service android:name=".common.debug.recording.core.RecorderService" />
<service
android:name=".common.debug.recording.core.RecorderService"
android:foregroundServiceType="specialUse">
<property
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
android:value="Users can record a debug log to help developers with bugs. The debug log recording is controlled via notifications and hosted in a foreground service." />
</service>

<!-- Worker stuff-->
<service
Expand Down

1 comment on commit 0c8b121

@YAHYA6K
Copy link

@YAHYA6K YAHYA6K commented on 0c8b121 Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app/src/main/AndroidManifest.xml

Please sign in to comment.