forked from spacecowboy/NotePad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AndroidManifest.xml
208 lines (178 loc) · 8.56 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Jonas Kalderstam
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.
-->
<!--
Declare the contents of this Android application. The namespace
attribute brings in the Android platform namespace, and the package
supplies a unique name for the application. When writing your
own application, the package name must be changed from "com.example.*"
to come from a domain that you own or have control over.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.nononsenseapps.notepad"
android:installLocation="internalOnly"
android:versionCode="45"
android:versionName="4.2.1" >
<!-- App crashes on 3.0. No one uses 3.1. So minimum version is set to 3.2 now -->
<uses-sdk
android:minSdkVersion="13"
android:targetSdkVersion="17" />
<!-- For connection -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- For getting Google account -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<!-- For getting Google account auth token -->
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<!-- For syncing -->
<uses-permission android:name="android.permission.READ_SYNC_STATS" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
<!-- Define my permissions for the provider -->
<permission
android:name="com.nononsenseapps.notepad.permissions.read"
android:description="@string/permission_read_desc"
android:label="@string/permission_read_label"
android:permissionGroup="android.permission-group.PERSONAL_INFO"
android:protectionLevel="normal" />
<permission
android:name="com.nononsenseapps.notepad.permissions.write"
android:description="@string/permission_write_desc"
android:label="@string/permission_write_label"
android:permissionGroup="android.permission-group.PERSONAL_INFO"
android:protectionLevel="normal" />
<uses-permission android:name="com.nononsenseapps.notepad.permissions.read" />
<uses-permission android:name="com.nononsenseapps.notepad.permissions.write" />
<application
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@drawable/app_icon"
android:label="@string/app_name" >
<!--
Widgets do NOT have read permission, hence the removal of the permission...
To not get a SecurityException on a Widget, you must have exported=true and not require
any read permissions.
-->
<provider
android:name="com.nononsenseapps.notepad.NotePadProvider"
android:authorities="com.nononsenseapps.NotePad"
android:enabled="true"
android:exported="true"
android:grantUriPermissions="true"
android:label="@string/app_name"
android:syncable="true"
android:writePermission="com.nononsenseapps.notepad.permissions.write" >
</provider>
<!-- removed android:readPermission="com.nononsenseapps.notepad.permissions.read" -->
<!-- Broadcast receiver for accepting actions from widget for example -->
<receiver
android:name="com.nononsenseapps.notepad.NotePadBroadcastReceiver"
tools:ignore="ExportedReceiver" >
<intent-filter>
<action android:name="com.nononsenseapps.completenote" />
</intent-filter>
</receiver>
<!-- Main program -->
<activity
android:name="com.nononsenseapps.notepad.MainActivity"
android:label="@string/app_name"
android:launchMode="singleTask"
android:theme="@style/ThemeHolo"
android:uiOptions="splitActionBarWhenNarrow"
android:windowSoftInputMode="adjustResize" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<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="com.nononsenseapps.notepad.RightActivity"
android:theme="@style/ThemeHolo"
android:windowSoftInputMode="adjustResize"
tools:ignore="ExportedActivity" >
<intent-filter android:label="@string/resolve_edit" >
<action android:name="android.intent.action.INSERT" />
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<action android:name="com.nononsenseapps.completenote" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/vnd.nononsenseapps.note" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/*" />
<!-- <data android:mimeType="text/*" android:path="*.txt" /> Would like to be able to open files in future -->
</intent-filter>
</activity>
<activity
android:name="com.nononsenseapps.notepad.prefs.PrefsActivity"
android:theme="@style/ThemeHolo"
tools:ignore="ExportedActivity" >
<intent-filter>
<category android:name="android.intent.category.PREFERENCE" >
</category>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.VIEW" />
<action android:name="android.settings.SETTINGS" />
</intent-filter>
</activity>
<service
android:name="com.nononsenseapps.notepad.sync.SyncService"
android:exported="true"
tools:ignore="ExportedService" >
<intent-filter>
<action android:name="android.content.SyncAdapter" />
</intent-filter>
<meta-data
android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter" />
</service>
<!-- List Widget -->
<receiver android:name="com.nononsenseapps.notepad.widget.ListWidgetProvider" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/listwidgetinfo" />
</receiver>
<service
android:name="com.nononsenseapps.notepad.widget.ListWidgetService"
android:exported="false"
android:permission="android.permission.BIND_REMOTEVIEWS" />
<activity
android:name="com.nononsenseapps.notepad.widget.ListWidgetConfig"
android:theme="@style/ThemeHolo"
tools:ignore="ExportedActivity" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
<activity
android:name="com.nononsenseapps.notepad.ShortcutConfig"
tools:ignore="ExportedActivity" >
<intent-filter>
<action android:name="android.intent.action.CREATE_SHORTCUT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>