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
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
  157
  158
  159
  160
  161
  162
  163
  164
  165
  166
  167
  168
  169
  170
  171
  172
  173
  174

android_webview / tools / system_webview_shell / apk / AndroidManifest.xml [blame]

<!--
 * Copyright 2015 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
-->

<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="{{manifest_package|default('org.chromium.webview_shell')}}"
    android:versionCode="1"
    android:versionName="1.0" >

    <!-- "Normal" permissions which do not require user prompt -->
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
    <uses-permission android:name="android.permission.USE_CREDENTIALS"/>
    <uses-permission android:name="android.permission.ACCESS_ADSERVICES_ATTRIBUTION"/>
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>


    <!-- "Dangerous" permissions which require user prompt -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.CAMERA"/>
    <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.RECORD_AUDIO"/>
    <uses-permission android:name="android.permission.RUN_INSTRUMENTATION" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <!-- Features related to permissions we request. -->
    <!-- android.permission.CAMERA -->
    <uses-feature android:name="android.hardware.camera" android:required="false" />
    <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
    <!-- android.permission.RECORD_AUDIO -->
    <uses-feature android:name="android.hardware.microphone" android:required="false" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/ShellTheme"
        android:enableOnBackInvokedCallback="true"
        android:networkSecurityConfig="@xml/network_security_config"
        android:debuggable="true" >
        <meta-data android:name="android.webkit.WebView.EnableSafeBrowsing"
            android:value="true" />
        <activity
            android:name="org.chromium.webview_shell.TelemetryActivity"
            android:launchMode="singleTask"
            android:label="@string/title_activity_telemetry"
            android:exported="true">
        </activity>
        <activity
            android:name="org.chromium.webview_shell.TelemetryMemoryPressureActivity"
            android:launchMode="singleTask"
            android:label="@string/title_activity_telemetry"
            android:exported="true">
        </activity>
        <activity
            android:name="org.chromium.webview_shell.JankActivity"
            android:label="@string/title_activity_jank"
            android:noHistory="true"
            android:exported="true">
        </activity>
        <activity
            android:name="org.chromium.webview_shell.StartupTimeActivity"
            android:label="@string/title_activity_startup_time"
            android:noHistory="true"
            android:exported="true">
        </activity>
        <activity
            android:name="org.chromium.webview_shell.WebViewCreateDestroyActivity"
            android:launchMode="singleTask"
            android:label="@string/title_activity_create_destroy"
            android:exported="true">
        </activity>
        <activity
            android:name="org.chromium.webview_shell.WebViewBrowserActivity"
            android:label="@string/title_activity_browser"
            android:exported="true"
            android:windowSoftInputMode="adjustResize"
            android:colorMode="wideColorGamut"
            android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|density">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <!-- Catch intents which do not specify a MIME type -->
            <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="http" />
                <data android:scheme="https" />
            </intent-filter>
            <!-- Catch intents which do specify a MIME type -->
            <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="content" />
                <data android:scheme="http" />
                <data android:scheme="https" />
                <data android:mimeType="text/html"/>
                <data android:mimeType="text/plain"/>
                <data android:mimeType="application/xhtml+xml"/>
                <data android:mimeType="application/vnd.wap.xhtml+xml"/> <!-- XHTML MP -->
            </intent-filter>
        </activity>
        <activity
            android:name="org.chromium.webview_shell.WebViewBrowserSecondProcessActivity"
            android:process=":second_process"
            android:label="@string/title_activity_browser_second_process"
            android:exported="true"
            android:windowSoftInputMode="adjustResize"
            android:colorMode="wideColorGamut"
            android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|density">
        </activity>
        <activity
            android:name="org.chromium.webview_shell.WebViewLayoutTestActivity"
            android:label="@string/title_activity_layout_test"
            android:exported="true">
        </activity>
        <activity android:name="org.chromium.webview_shell.WebViewMultiProfileBrowserActivity"
            android:label="@string/title_activity_multi_profile"
            android:exported="true"
            android:windowSoftInputMode="adjustResize"
            android:colorMode="wideColorGamut"
            android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|density">
        </activity>
        <activity
            android:name="org.chromium.webview_shell.WebViewThreadTestActivity"
            android:label="@string/title_activity_thread_test"
            android:exported="true">
        </activity>
        <activity
            android:name="org.chromium.webview_shell.PageCyclerTestActivity"
            android:label="@string/title_activity_page_cycler"
            android:exported="true">
        </activity>

        <activity
            android:name="org.chromium.webview_shell.WebViewTracingActivity"
            android:label="@string/title_activity_telemetry"
            android:noHistory="true"
            android:exported="true">
        </activity>

        <activity
            android:name="org.chromium.webview_shell.WebViewAnimationTestActivity"
            android:noHistory="true"
            android:exported="true">
        </activity>

        <activity
            android:name="org.chromium.webview_shell.WebPlatformTestsActivity"
            android:noHistory="true"
            android:exported="true">
        </activity>

        <property android:name="android.adservices.AD_SERVICES_CONFIG"
            android:resource="@xml/ad_services_config" />

        <service android:name="android.webkit.MetaDataHolderService"
                 android:enabled="false"
                 android:exported="false">
            <meta-data android:name="android.webkit.WebView.MultiProfileNameTagKey"
                android:resource="@id/multi_profile_name_tag_key" />
        </service>
    </application>
</manifest>