AndroidManifest.xml 5.01 KB
Newer Older
1
2
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Nathan Freitas's avatar
Nathan Freitas committed
3
      package="org.torproject.android" 
4
5
      android:versionName="15.2.0-alpha-1" 
      android:versionCode="15200001"
Nathan Freitas's avatar
Nathan Freitas committed
6
        android:installLocation="auto"      
7
      >
8
    <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="23"/>
9
    <!-- 
Nathan Freitas's avatar
Nathan Freitas committed
10
11
12
13
 <permission android:name="org.torproject.android.MANAGE_TOR" 
     android:label="@string/permission_manage_tor_label" 
     android:description="@string/permission_manage_tor_description" 
     android:protectionLevel="signature"/>
Nathan Freitas's avatar
Nathan Freitas committed
14
 
15
	<uses-permission android:name="org.torproject.android.MANAGE_TOR"/>
16
17
	-->
	
Nathan Freitas's avatar
Nathan Freitas committed
18
19
	<uses-permission android:name="android.permission.INTERNET"/>
	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
Nathan Freitas's avatar
Nathan Freitas committed
20
	<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
21

Nathan Freitas's avatar
Nathan Freitas committed
22
    <application android:name="org.torproject.android.OrbotApp" android:icon="@drawable/ic_launcher"
23
     android:label="@string/app_name" 
24
     android:description="@string/app_description"
n8fr8's avatar
n8fr8 committed
25
     android:configChanges="locale|orientation|screenSize"
26
      android:theme="@style/DefaultTheme" 
27
28
      android:allowBackup="false"
      android:allowClearUserData="true"
Nathan Freitas's avatar
Nathan Freitas committed
29
      android:persistent="true"
30
      android:stopWithTask="false"
31
      android:largeHeap="false"
n8fr8's avatar
n8fr8 committed
32
     >
33
      
34
        <activity android:name=".OrbotMainActivity" 
35
36
            android:configChanges="orientation|screenSize"
            android:excludeFromRecents="true"
37
            android:launchMode="singleTop"
38
            >
39
40
41
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
42
          </intent-filter>
43
          
44
45
46
47
48
49
50
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="bridge" />
            </intent-filter>
        
51
52
         <intent-filter>
                <category android:name="android.intent.category.DEFAULT" />
SandroB's avatar
SandroB committed
53
                <action android:name="org.torproject.android.REQUEST_HS_PORT" />
54
55
56
            </intent-filter>
             <intent-filter>
                <category android:name="android.intent.category.DEFAULT" />
SandroB's avatar
SandroB committed
57
                <action android:name="org.torproject.android.START_TOR" />
58
            </intent-filter>
59
            
60
        </activity>
61

Nathan Freitas's avatar
Nathan Freitas committed
62
        <!-- 
63
        This is for ensuring the background service still runs when/if the app is swiped away
Nathan Freitas's avatar
Nathan Freitas committed
64
         -->
65
66
      	<activity
			android:name=".service.DummyActivity"
67
			android:theme="@android:style/Theme.Translucent"
68
69
70
71
72
73
74
75
			android:enabled="true"
			android:allowTaskReparenting="true"
			android:noHistory="true"
			android:excludeFromRecents="true"
			android:alwaysRetainTaskState="false"
			android:stateNotNeeded="true"
			android:clearTaskOnLaunch="true"
			android:finishOnTaskLaunch="true"
76
			
77
			/> 
78
79
80
		
      	<activity
			android:name=".vpn.VPNEnableActivity" android:label="@string/app_name" android:exported="false"
81
			android:theme="@android:style/Theme.Translucent"			
82
83
			/> 
		
84
			      	
85
      	<activity android:name="org.torproject.android.ui.PromoAppsActivity" android:exported="false"/>
86
      	
Nathan Freitas's avatar
Nathan Freitas committed
87
88
      	
      	<activity android:name=".settings.SettingsPreferences"  android:label="@string/app_name"/>
89
        <activity android:name=".settings.AppManager"  android:label="@string/app_name"/>       
90
      
91
92
93
        <service
            android:name=".service.TorService"
            android:enabled="true"
94
            android:permission="android.permission.BIND_VPN_SERVICE"
95
96
            android:stopWithTask="false" >
        </service>
97
98
99
100
101
102
103
104
105

        <receiver
            android:name=".service.StartTorReceiver"
            android:exported="true">
             <intent-filter>
                 <action android:name="org.torproject.android.intent.action.START" />
             </intent-filter>
        </receiver>

106
   	<receiver android:name="org.torproject.android.OnBootReceiver"
107
108
109
   	    android:enabled="true" android:exported="true"
   	    
   	    >
110
111
			<intent-filter>
				<action	android:name="android.intent.action.BOOT_COMPLETED" />
112
113
114
				  <category android:name="android.intent.category.HOME" />
			</intent-filter>
			<intent-filter>
115
				<action android:name="android.intent.action.QUICKBOOT_POWERON" />
116
117
118
				  <category android:name="android.intent.category.HOME" />
			</intent-filter>
			<intent-filter>
119
				<action android:name="android.intent.action.MEDIA_MOUNTED"/>
120
				  <category android:name="android.intent.category.HOME" />
121
122
123
			</intent-filter>
		</receiver>
		
124
   	<!-- 
125
126
127
128
129
130
       <service android:name="org.torproject.android.vpn.OrbotVpnService"
               android:permission="android.permission.BIND_VPN_SERVICE">
           <intent-filter>
               <action android:name="android.net.VpnService"/>
           </intent-filter>
       </service>
131
         -->
132
</application>
133
</manifest>