mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-15 13:31:14 +01:00
Request the FOREGROUND_SERVICE permission
From https://developer.android.com/guide/components/services: "Apps that target Android 9 (API level 28) or higher and use foreground services must request the FOREGROUND_SERVICE permission. This is a normal permission, so the system automatically grants it to the requesting app. If an app that targets API level 28 or higher attempts to create a foreground service without requesting FOREGROUND_SERVICE, the system throws a SecurityException."
This commit is contained in:
parent
8df73a3006
commit
57a3a9b111
1 changed files with 1 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
|||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
|
||||
<application
|
||||
android:extractNativeLibs="true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue