summaryrefslogtreecommitdiffstats
path: root/Android/03-Permissions/DangerousApp/AndroidManifest.xml
blob: 448a602082f61483fc0ac4e0b3376785aa75292f (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
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="course.labs.dangerousapp"
    android:versionCode="1"
    android:versionName="1.0" >

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

    <permission
        android:name="course.labs.dangerousapp.DANGEROUS_ACTIVITY_PERM"
        android:protectionLevel="dangerous"
        />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme"
        android:permission="course.labs.dangerousapp.DANGEROUS_ACTIVITY_PERM"
        >

        <activity
            android:name=".DangerousActivity"
            android:label="@string/app_name" >

            <intent-filter>
                <action android:name="course.labs.dangerousapp.DANGEROUS_ACTIVITY"/>
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>