]> gitweb.stoutner.com Git - PrivacyCell.git/blob - app/src/main/AndroidManifest.xml
Add a realtime monitoring service. https://redmine.stoutner.com/issues/750
[PrivacyCell.git] / app / src / main / AndroidManifest.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2021 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Cell <https://www.stoutner.com/privacy-cell>.
7
8   Privacy Cell is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Cell is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Cell.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <!-- Install location `auto` allows users to move Privacy Cell to an SD card if desired. -->
22 <manifest
23     xmlns:android="http://schemas.android.com/apk/res/android"
24     package="com.stoutner.privacycell"
25     android:installLocation="auto" >
26
27     <!-- Required to read cell network information. -->
28     <uses-permission android:name="android.permission.READ_PHONE_STATE" />
29
30     <!-- Required to display a realtime notification icon. -->
31     <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
32
33     <!-- Required to start the realtime notification icon at boot. -->
34     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
35
36     <!-- Support Chromebooks that don't have a touch screen. -->
37     <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
38
39     <!-- App data is automatically backed up to Google cloud servers unless `android:allowBackup="false"` and `android:fullBackupContent="false"` is set. -->
40     <application
41         android:label="@string/privacy_cell"
42         android:icon="@mipmap/privacy_cell"
43         android:allowBackup="false"
44         android:fullBackupContent="false"
45         android:supportsRtl="true"
46         android:theme="@style/Theme.PrivacyCell" >
47
48         <!-- Privacy Cell Activity.  The label uses the short name so that it isn't truncated under the icon in the launcher on most phones.
49             `android:launchMode="singleTask"` makes the app launch in a new task instead of inside the task of the program that sends it an intent.
50             It also makes it reuse an existing Privacy Cell activity if available instead of launching a new one. -->
51         <activity
52             android:name=".activities.PrivacyCellActivity"
53             android:label="@string/cell"
54             android:launchMode="singleTask"
55             android:screenOrientation="fullUser"
56             android:exported="true" >
57
58             <intent-filter>
59                 <action android:name="android.intent.action.MAIN" />
60                 <category android:name="android.intent.category.LAUNCHER" />
61             </intent-filter>
62         </activity>
63
64         <!-- Settings Activity.  The `parentActivityName` is used when restarting Privacy Cell.-->
65         <activity
66             android:name=".activities.SettingsActivity"
67             android:label="@string/settings"
68             android:screenOrientation="fullUser"
69             android:parentActivityName=".activities.PrivacyCellActivity" />
70
71         <!-- Realtime Monitoring Service. -->
72         <service android:name=".services.RealtimeMonitoringService" />
73
74         <!-- On Boot Completed Receiver. -->
75         <receiver
76             android:name=".receivers.OnBootCompletedReceiver"
77             android:exported="true" >
78
79             <intent-filter>
80                 <action android:name="android.intent.action.BOOT_COMPLETED" />
81             </intent-filter>
82         </receiver>
83     </application>
84 </manifest>