<?xml version="1.0" encoding="utf-8"?>
<!--
- Copyright 2021-2022 Soren Stoutner <soren@stoutner.com>.
+ Copyright 2021-2023 Soren Stoutner <soren@stoutner.com>.
This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
<!-- Required to display a notification. <Dangerous permission> -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
- <!-- Required to run a foreground service (which is the only type of service that can display notifications). -->
- <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
-
<!-- Required to start the realtime notification icon at boot. -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+ <!-- Required to run a foreground service (which is the only type of service that can display notifications). -->
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
+
<!-- Disabled the unneeded permissions that are automatically added by `androidx.work`. <https://developer.android.com/reference/androidx/work/package-summary> -->
<uses-permission android:name="android.permission.WAKE_LOCK" tools:node="remove" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" tools:node="remove" />
android:fullBackupContent="false"
android:supportsRtl="true"
android:theme="@style/Theme.PrivacyCell"
- tools:ignore="DataExtractionRules" >
+ android:localeConfig="@xml/locales_config"
+ tools:ignore="DataExtractionRules,UnusedAttribute" >
<!-- Privacy Cell Activity. The label uses the short name so that it isn't truncated under the icon in the launcher on most phones.
`android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
android:screenOrientation="fullUser" />
<!-- Realtime Monitoring Service. -->
- <service android:name=".services.RealtimeMonitoringService" />
+ <service
+ android:name=".services.RealtimeMonitoringService"
+ android:foregroundServiceType="specialUse" >
+
+ <property
+ android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
+ android:value="Displays current cell protocol security information." />
+ </service>
<!-- On Boot Completed Receiver. -->
<receiver