summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
blob: 66f2b50adc9de4f48cdf65eb8c53ba44e2c50988 (plain)
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"?>

<!--
Copyright (C) 2015 The CyanogenMod Project
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.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="org.cyanogenmod.providers.datausage"
          android:sharedUserId="android.uid.system"
          android:versionCode="1"
          android:versionName="1.0">

    <uses-sdk android:minSdkVersion="22"/>

    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_NETWORK_USAGE_HISTORY" />

    <application android:label="@string/app_name"
                 android:icon="@drawable/ic_launcher">

        <!-- Runs in the phone process since it needs access to the Phone object -->
        <service android:name=".DataUsageService"
                 android:label="DataUsageService">
        </service>

        <service android:name=".DataUsageAppInstallService"
                 android:label="DataUsageAppInstallService" >
        </service>

        <provider android:name=".DataUsageProvider"
                  android:authorities="org.cyanogenmod.providers.datausage"
                  android:readPermission="cyanogenmod.permission.READ_DATAUSAGE"
                  android:writePermission="cyanogenmod.permission.WRITE_DATAUSAGE"
                  android:exported="true">
        </provider>

        <receiver android:name=".DataUsageServiceEnableReceiver">
            <intent-filter>
                <action android:name="org.cyanogenmod.providers.datausage.enable" />
            </intent-filter>
        </receiver>

        <receiver android:name=".DataUsageNotificationReceiver">
            <intent-filter>
                <action android:name="org.cyanogenmod.providers.datausage.hide_action"/>
                <action android:name="org.cyanogenmod.providers.datausage.disable_action"/>
            </intent-filter>
        </receiver>

        <receiver android:name=".DataUsageAppInstallReceiver"
                  android:exported="true" >
            <intent-filter>
                <action android:name="android.intent.action.PACKAGE_ADDED" />
                <action android:name="android.intent.action.PACKAGE_REMOVED" />
                <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
                <action android:name="android.intent.action.PACKAGE_CHANGED" />
                <action android:name="android.intent.action.PACKAGE_REPLACED" />
                <data android:scheme="package" />
            </intent-filter>
        </receiver>

        <receiver android:name=".BootReceiver" android:enabled="true">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>


    </application>
</manifest>