-
Notifications
You must be signed in to change notification settings - Fork 1
/
AndroidManifest.xml
83 lines (81 loc) · 4.01 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
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0" package="com.google.android.voicemail.example">
<application android:icon="@drawable/icon" android:label="@string/app_name"
android:name=".VoicemailExampleApp">
<!-- Activities -->
<activity android:name=".activity.fetch.FetchVoicemailActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".activity.SettingsActivity" android:label="@string/settings_title"/>
<!-- Services -->
<service android:name=".service.fetch.OmtpFetchService" />
<!-- Receivers -->
<receiver android:name=".receiver.FakeOmtpMessageReceiver" android:enabled="true">
<intent-filter>
<action android:name="com.google.android.apps.vvm.action.FAKE_OMTP_MESSAGE" />
</intent-filter>
</receiver>
<receiver android:name=".receiver.OmtpSmsReceiver" android:enabled="true">
<intent-filter>
<action android:name="android.intent.action.DATA_SMS_RECEIVED" />
<data android:scheme="sms"/>
</intent-filter>
</receiver>
<receiver android:name=".receiver.OmtpFetchReceiver" android:enabled="true">
<intent-filter>
<action android:name="com.google.android.apps.vvm.VOICEMAIL_FETCH" />
<!-- TODO: find a way to filter fetch requests for my own package -->
<data
android:scheme="content"
android:host="com.android.voicemail"
android:mimeType="vnd.android.cursor.item/voicemail"
/>
</intent-filter>
</receiver>
<receiver android:name=".receiver.ProviderChangeReceiver" android:enabled="true">
<!-- filter for uris that represent a directory of voicemails (mimeType dir) -->
<intent-filter>
<action android:name="android.intent.action.PROVIDER_CHANGED" />
<data
android:scheme="content"
android:host="com.android.voicemail"
android:mimeType="vnd.android.cursor.dir/voicemails" />
</intent-filter>
<!-- filter for uris that represent a single voicemail with valid mime type set -->
<intent-filter>
<action android:name="android.intent.action.PROVIDER_CHANGED" />
<data
android:scheme="content"
android:host="com.android.voicemail"
android:mimeType="vnd.android.cursor.item/voicemail" />
</intent-filter>
</receiver>
</application>
<uses-sdk android:minSdkVersion="14" />
<!-- For sending or receiving data. -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- For storing and reading voicemails. -->
<uses-permission android:name="com.android.voicemail.permission.ADD_VOICEMAIL"/>
<!-- For receiving OMTP SMS. -->
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<!-- For sending OMTP messages to the server. -->
<uses-permission android:name="android.permission.SEND_SMS" />
<!-- For reading subscriber and network operator details from SIM. -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<!-- For fake audio fetcher implementation that syncs voicemails against an sdcard folder. -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- In order for the end-to-end test to work, we need to disable the keyguard.
In an ideal world, we should only have this permission enabled for the tests.
I don't know how we do that. -->
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<!-- In order for the end-to-end test to work, we want to grab a wake lock to keep the screen on.
In an ideal world, we should only have this permission enabled for the tests.
I don't know how we do that. -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
</manifest>