| Index: chrome/android/java/AndroidManifest.xml
|
| diff --git a/chrome/android/java/AndroidManifest.xml b/chrome/android/java/AndroidManifest.xml
|
| index 781267140c69ee5577e124cef3646028fc47f741..90bb4253cf23ab0a8cdf9cf5cb52b1666cf3399a 100644
|
| --- a/chrome/android/java/AndroidManifest.xml
|
| +++ b/chrome/android/java/AndroidManifest.xml
|
| @@ -52,6 +52,11 @@ by a child template that "extends" this file.
|
| <uses-permission android:name="android.permission.WAKE_LOCK"/>
|
| <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
| <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
|
| + {% set enable_vr_shell = enable_vr_shell|default(0) %}
|
| + {% if enable_vr_shell == "true" %}
|
| + <!-- Required to read the paired viewer's distortion parameters. -->
|
| + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
| + {% endif %}
|
|
|
| <permission android:name="{{ manifest_package }}.permission.CHILD_SERVICE" android:protectionLevel="signature" />
|
| <permission android:name="{{ manifest_package }}.permission.READ_WRITE_BOOKMARK_FOLDERS" android:protectionLevel="signatureOrSystem" />
|
| @@ -155,11 +160,6 @@ by a child template that "extends" this file.
|
| {% if channel in ['dev', 'canary', 'default'] %}
|
| <category android:name="android.intent.category.MULTIWINDOW_LAUNCHER" />
|
| {% endif %}
|
| - {% set enable_vr_shell = enable_vr_shell|default(0) %}
|
| - {% if enable_vr_shell == "true" %}
|
| - <!-- Show icon in Daydream app launcher. -->
|
| - <category android:name="com.google.intent.category.DAYDREAM" />
|
| - {% endif %}
|
| </intent-filter>
|
| <!-- Matches the common case of intents with no MIME type.
|
| Make sure to keep in sync with the next filter. -->
|
| @@ -343,6 +343,26 @@ by a child template that "extends" this file.
|
| android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc|screenLayout|smallestScreenSize"
|
| android:hardwareAccelerated="false">
|
| </activity>
|
| + {% if enable_vr_shell == "true" %}
|
| + <activity android:name="org.chromium.chrome.browser.ChromeVrActivity"
|
| + android:theme="@style/TabbedModeTheme"
|
| + android:exported="false"
|
| + android:windowSoftInputMode="stateAlwaysHidden"
|
| + android:launchMode="singleTask"
|
| + android:screenOrientation="landscape"
|
| + android:hardwareAccelerated="false">
|
| + </activity>
|
| + <activity-alias android:name="com.google.android.apps.chrome.VrMain"
|
| + android:targetActivity="org.chromium.chrome.browser.ChromeVrActivity"
|
| + android:exported="true">
|
| + <intent-filter>
|
| + <action android:name="android.intent.action.MAIN" />
|
| + <category android:name="android.intent.category.LAUNCHER" />
|
| + <!-- Show icon in Daydream app launcher. -->
|
| + <category android:name="com.google.intent.category.DAYDREAM" />
|
| + </intent-filter>
|
| + </activity-alias>
|
| + {% endif %}
|
| <activity android:name="org.chromium.chrome.browser.ChromeTabbedActivity2"
|
| android:theme="@style/TabbedModeTheme"
|
| android:exported="false"
|
|
|