xref: /aosp_15_r20/frameworks/base/packages/FusedLocation/AndroidManifest.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright (c) 2012 Google Inc.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *     http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18-->
19<manifest xmlns:android="http://schemas.android.com/apk/res/android"
20        package="com.android.location.fused"
21        coreApp="true"
22        android:sharedUserId="android.uid.system">
23
24    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
25    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
26    <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
27    <uses-permission android:name="android.permission.UPDATE_DEVICE_STATS" />
28    <uses-permission android:name="android.permission.INSTALL_LOCATION_PROVIDER" />
29    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
30    <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />
31    <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
32
33    <application
34            android:label="@string/app_label"
35            android:process="system"
36            android:defaultToDeviceProtectedStorage="true"
37            android:directBootAware="true">
38
39        <uses-library android:name="com.android.location.provider" />
40
41        <!-- Fused Location Service that LocationManagerService binds to.
42             LocationManagerService will bind to the service with the highest
43             version. -->
44        <service android:name="com.android.location.fused.FusedLocationService"
45                 android:exported="false"
46                 android:permission="android.permission.WRITE_SECURE_SETTINGS">
47           <intent-filter>
48               <action android:name="com.android.location.service.FusedLocationProvider" />
49           </intent-filter>
50           <meta-data android:name="serviceVersion" android:value="0" />
51           <meta-data android:name="serviceIsMultiuser" android:value="true" />
52        </service>
53
54        <!-- GNSS overlay Service that LocationManagerService binds to.
55             LocationManagerService will bind to the service with the highest
56             version. -->
57        <service android:name="com.android.location.gnss.GnssOverlayLocationService"
58                 android:exported="false">
59           <intent-filter>
60               <action android:name="android.location.provider.action.GNSS_PROVIDER" />
61           </intent-filter>
62           <meta-data android:name="serviceVersion" android:value="0" />
63           <meta-data android:name="serviceIsMultiuser" android:value="true" />
64        </service>
65    </application>
66</manifest>
67