Skip to content

Commit 4ced2d7

Browse files
committed
Fix Service crash
1 parent 15fa13d commit 4ced2d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
2020
tools:ignore="QueryAllPackagesPermission" />
2121
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
22+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
2223
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
2324
<uses-permission android:name="android.permission.INTERNET" />
2425
<uses-permission android:name="com.android.vending.BILLING" />
@@ -196,6 +197,7 @@
196197
android:exported="true" />
197198

198199
<service android:name=".services.Manager"
200+
android:foregroundServiceType="specialUse"
199201
android:exported="false"
200202
/>
201203
<service

0 commit comments

Comments
 (0)