-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAndroidManifest.xml
107 lines (100 loc) · 4.59 KB
/
AndroidManifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2009, Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Whenever the version changes here, it must also be changed in
the strings.xml file -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.tawacentral.roger.secrets"
android:versionName="2.4.4"
android:versionCode="50"
android:installLocation="auto">
<!--Secrets supports Android 2.3 (SDK 9) or later only. The main reasons for
these restriction are:
- to properly set the required permissions for the app
- to handle online backups
-->
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="17"></uses-sdk>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE">
</uses-permission>
<permission-group
android:name="net.tawacentral.roger.secrets.permission_group.SECRETS"
android:label="@string/app_name"
android:icon="@drawable/icon"
android:description="@string/permission_osa_desc"
android:permissionGroupFlags="personalInfo" />
<permission
android:name="net.tawacentral.roger.secrets.permission.SECRETS"
android:permissionGroup="net.tawacentral.roger.secrets.permission_group.SECRETS"
android:description="@string/permission_osa_desc"
android:label="@string/permission_osa_label"
android:protectionLevel="dangerous" />
<application android:icon="@drawable/icon"
android:label="@string/app_name"
android:allowBackup="true"
android:backupAgent=".FileUtils$SecretsBackupAgent">
<meta-data android:name="com.google.android.backup.api_key"
android:value="AEdPqrEAAAAIiaTKLQX8KGBYlJtm_orjiPGWqNbppxZwGByuGA" />
<!-- I set the clearTaskOnLaunch so that when the user restarts
secrets, they start with the login page. Without this flag set,
if the user starts secrets, logs in, presses the HOME button and
then the BACK button, they go straight to the secrets list
activity, bypassing login. -->
<activity android:name=".LoginActivity"
android:label="@string/app_name"
android:excludeFromRecents="true"
android:stateNotNeeded="true"
android:clearTaskOnLaunch="true"
android:launchMode="singleTask"
android:windowSoftInputMode="stateVisible">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- I set the excludeFromRecents flags so that when the device goes
to sleep or the user changes apps, these two activity do not
remain on the activity stack, and the user cannot come back to
them at some later point. This is to make sure the user always
goes through the login activity after the device wakes up or the
user changes to another apps and returns to secrets. -->
<activity android:name=".SecretsListActivity"
android:label="@string/list_name"
android:excludeFromRecents="true"
android:finishOnTaskLaunch="true"
android:windowSoftInputMode="adjustResize"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data android:name="android.app.searchable"
android:resource="@xml/searchable"/>
</activity>
<activity android:name=".AccessLogActivity"
android:label="@string/log_name"
android:excludeFromRecents="true"
android:stateNotNeeded="true"
android:finishOnTaskLaunch="true"></activity>
<service android:name=".SaveService"></service>
<receiver
android:name=".OnlineAgentManager"
android:label="OnlineAgentReceiver"
android:permission="net.tawacentral.roger.secrets.permission.SECRETS">
<intent-filter>
<action
android:name="net.tawacentral.roger.secrets.OSA_ROLLCALL_RESPONSE"/>
<action
android:name="net.tawacentral.roger.secrets.SYNC_RESPONSE"/>
</intent-filter>
</receiver>
</application>
</manifest>