summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
blob: 40cd622231c6e0d6febf136c6700101f38cd2f3e (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
<?xml version="1.0" encoding="utf-8"?>
<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_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>