1<!--
2  ~ Copyright (C) 2021 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License.
15  -->
16
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18          package="com.google.android.car.adaslocation">
19
20    <!-- The app needs to access device location to verify ADAS and main location switch work as
21    expected. -->
22    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
23    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
24    <uses-permission android:name="android.permission.LOCATION_BYPASS"/>
25
26    <application android:label="AdasLocationTestApp">
27        <!-- This app is a test app with no privacy policy. The fake policy url
28        is for testing features in Location Settings. -->
29        <meta-data android:name="privacy_policy"
30            android:value="https://source.android.com/devices/automotive/location_bypass_policy"/>
31        <activity android:name=".AdasLocationActivity"
32                  android:theme="@style/Theme.AppCompat"
33                  android:exported="true">
34            <intent-filter>
35                <action android:name="android.intent.action.MAIN"/>
36                <category android:name="android.intent.category.LAUNCHER"/>
37            </intent-filter>
38        </activity>
39
40        <!-- the activity is for provding a fake policy url for Geo GSR-ISA app. -->
41        <activity
42            android:name=".PrivacyPolicyActivity"
43            android:exported="true">
44            <intent-filter>
45                <action android:name="android.intent.action.VIEW" />
46                <category android:name="android.intent.category.DEFAULT" />
47                <category android:name="android.intent.category.BROWSABLE" />
48
49                <data android:scheme="gsr" />
50                <data android:host="privacy_policy" />
51            </intent-filter>
52        </activity>
53    </application>
54</manifest>