Foreground service type

This commit is contained in:
2025-10-18 18:03:53 +02:00
parent e99203c7e4
commit 7972a335c3
8 changed files with 32 additions and 5 deletions

View File

@@ -77,6 +77,7 @@
<!--android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.USE_EXACT_ALARM" />-->
<uses-permission android:name="com.termux.permission.RUN_COMMAND" />
<uses-permission android:name="com.termux.permission.FOREGROUND_SERVICE_TYPE_SPECIAL_USE" />
<uses-feature
android:name="android.hardware.telephony"
@@ -122,7 +123,8 @@
<service
android:name=".AutomationService"
android:exported="false"
android:label="@string/app_name" />
android:label="@string/app_name"
android:foregroundServiceType="specialUse" />
<receiver android:name=".receivers.StartupIntentReceiver" android:enabled="true" android:exported="true">
<intent-filter>