summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
blob: 4b6d54393c4fb96e6b83b718833c0ffe2a97bb84 (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
84
85
86
87
88
89
90
91
92
93
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.cyngn.theme.chooser"
    android:versionCode="100"
    android:versionName="2.0" >

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_THEME_MANAGER" />
    <uses-permission android:name="android.permission.READ_THEMES" />
    <uses-permission android:name="android.permission.WRITE_THEMES" />

    <!-- The following permissions are used to hijack Google Play notifications
         when a theme is installed -->
    <uses-permission android:name="android.permission.CANCEL_NOTIFICATIONS" />
    <uses-permission android:name="android.permission.ACCESS_NOTIFICATIONS" />
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />

    <!-- Used to see if we are resuming from the launcher -->
    <uses-permission android:name="android.permission.GET_TASKS" />

    <!-- Used to support wallpapers from external sources -->
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.SET_WALLPAPER" />
    <uses-permission android:name="android.permission.SET_KEYGUARD_WALLPAPER" />

    <!-- Used to cleanly uninstall themes without relying on the PackageInstaller apk -->
    <uses-permission android:name="android.permission.DELETE_PACKAGES" />

    <uses-sdk
        android:minSdkVersion="19"
        android:targetSdkVersion="19" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_app_themes"
        android:label="@string/app_name"
        android:theme="@style/ThemeChooserTheme" >
        <activity android:name="com.cyngn.theme.chooser.ChooserActivity"
                  android:label="@string/app_name"
                  android:theme="@style/ThemeChooserTheme"
                  android:configChanges="themeChange"
                  android:launchMode="singleTop"
                  android:screenOrientation="sensorPortrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="cyanogenmod.intent.category.APP_THEMES" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="cyngn.intent.category.APP_THEMES" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.APPLY_THEME"/>
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <receiver android:name="com.cyngn.theme.chooser.AppReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.PACKAGE_ADDED" />
                <action android:name="android.intent.action.PACKAGE_REPLACED" />
                <category
                    android:name="com.tmobile.intent.category.THEME_PACKAGE_INSTALL_STATE_CHANGE" />
                <data android:scheme="package" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
                <category
                    android:name="com.tmobile.intent.category.THEME_PACKAGE_INSTALL_STATE_CHANGE" />
                <data android:scheme="package" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.THEME_RESOURCES_CACHED" />
            </intent-filter>
        </receiver>

        <service android:name="com.cyngn.theme.chooser.NotificationHijackingService"
            android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
            <intent-filter>
                <action android:name="android.service.notification.NotificationListenerService" />
            </intent-filter>
        </service>
    </application>

</manifest>