summaryrefslogtreecommitdiff
path: root/app/java/AndroidManifest.xml
blob: 6734e5931fa98d2037092fddfb1765d5ca23fb6f (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
<?xml version="1.0" encoding="UTF-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="org.pihole.dnsproxy"
    android:versionCode="1"
    android:versionName="1.0.0"
>
    <uses-sdk
        android:minSdkVersion="28"
        android:targetSdkVersion="30"
    />

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:icon="@drawable/logo"
        android:usesCleartextTraffic="true"
    >
        <service
            android:name=".DNSProxyService"
            android:permission="android.permission.BIND_VPN_SERVICE"
        >
            <intent-filter>
                <action android:name="android.net.VpnService" />
            </intent-filter>
        </service>

        <service
            android:name=".WifiListenerService"
            android:foregroundServiceType="location"
        ></service>

        <activity
            android:name=".MainActivity"
            android:label="@string/app_label"
            android:screenOrientation="portrait"
        >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity
            android:name=".SettingsActivity"
            android:label="@string/menu_settings"
            android:parentActivityName=".MainActivity">

            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value=".MainActivity"
            />
        </activity>
    </application>
</manifest>