Updating XTBs based on .GRDs from branch master
[chromium-blink-merge.git] / remoting / android / java / AndroidManifest.xml.jinja2
blob0d6399890ea29fc8ecc1378e4c109c473b1d6209
1 <?xml version="1.0" encoding="utf-8"?>
2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 package="{{ APK_PACKAGE_NAME }}">
4 <uses-sdk android:minSdkVersion="14"
5 android:targetSdkVersion="21"/>
6 <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
7 <uses-permission android:name="android.permission.INTERNET"/>
8 <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>
9 <uses-permission android:name="android.permission.USE_CREDENTIALS"/>
10 {% if ENABLE_CARDBOARD == "1" %}
11 <uses-permission android:name="android.permission.NFC" />
12 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
13 <uses-permission android:name="android.permission.RECORD_AUDIO" />
14 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
15 {% endif %}
17 <application android:label="@string/product_name_android"
18 android:icon="@mipmap/logo_remote_desktop_launcher"
19 android:theme="@style/BaseTheme"
20 android:allowBackup="false">
21 <meta-data
22 android:name="com.google.android.gms.version"
23 android:value="@integer/google_play_services_version"/>
24 <meta-data
25 android:name="enable_cardboard"
26 android:value="{{ ENABLE_CARDBOARD }}"/>
27 <activity android:name="org.chromium.chromoting.Chromoting"
28 android:configChanges="orientation|screenSize"
29 android:theme="@style/BaseTheme.NavigationDrawer"
30 android:launchMode="singleTask">
31 <intent-filter>
32 <action android:name="android.intent.action.MAIN"/>
33 <category android:name="android.intent.category.LAUNCHER"/>
34 </intent-filter>
35 </activity>
36 <activity
37 android:name="org.chromium.chromoting.ThirdPartyTokenFetcher$OAuthRedirectActivity"
38 android:enabled="false"
39 android:noHistory="true">
40 <!-- TODO(kevinp): suppress once crbug.com/501593 is fixed. -->
41 <!--suppress AppIndexingError -->
42 <intent-filter>
43 <action android:name="android.intent.action.VIEW"/>
44 <category android:name="android.intent.category.DEFAULT"/>
45 <category android:name="android.intent.category.BROWSABLE"/>
46 <data android:scheme="{{ APK_PACKAGE_NAME }}"/>
47 <data android:path="/oauthredirect/"/>
48 </intent-filter>
49 </activity>
50 <activity android:name="org.chromium.chromoting.Desktop"
51 android:theme="@style/BaseTheme.Desktop"
52 android:windowSoftInputMode="adjustResize"/>
53 {% if ENABLE_CARDBOARD == "1" %}
54 <activity android:name="org.chromium.chromoting.CardboardDesktopActivity"
55 android:theme="@style/BaseTheme.Desktop"
56 android:windowSoftInputMode="adjustResize"
57 android:screenOrientation="landscape">
58 <intent-filter>
59 <category android:name="com.google.intent.category.CARDBOARD" />
60 </intent-filter>
61 </activity>
62 {% endif %}
63 <activity android:name="org.chromium.chromoting.HelpActivity"
64 android:configChanges="orientation|screenSize"
65 android:uiOptions="splitActionBarWhenNarrow"/>
66 </application>
67 </manifest>