xref: /aosp_15_r20/external/libtextclassifier/java/AndroidManifest.xml (revision 993b0882672172b81d12fad7a7ac0c3e5c824a12)
1*993b0882SAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*993b0882SAndroid Build Coastguard Worker<!--
3*993b0882SAndroid Build Coastguard Worker/*
4*993b0882SAndroid Build Coastguard Worker * Copyright (C) 2019 The Android Open Source Project
5*993b0882SAndroid Build Coastguard Worker *
6*993b0882SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License");
7*993b0882SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License.
8*993b0882SAndroid Build Coastguard Worker * You may obtain a copy of the License at
9*993b0882SAndroid Build Coastguard Worker *
10*993b0882SAndroid Build Coastguard Worker *      http://www.apache.org/licenses/LICENSE-2.0
11*993b0882SAndroid Build Coastguard Worker *
12*993b0882SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software
13*993b0882SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS,
14*993b0882SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15*993b0882SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and
16*993b0882SAndroid Build Coastguard Worker * limitations under the License.
17*993b0882SAndroid Build Coastguard Worker */
18*993b0882SAndroid Build Coastguard Worker-->
19*993b0882SAndroid Build Coastguard Worker
20*993b0882SAndroid Build Coastguard Worker<!--
21*993b0882SAndroid Build Coastguard Worker  This manifest file is for the tcs library.
22*993b0882SAndroid Build Coastguard Worker  The TCS is typically shipped as part of ExtServices and is configured
23*993b0882SAndroid Build Coastguard Worker  in ExtServices's manifest.
24*993b0882SAndroid Build Coastguard Worker-->
25*993b0882SAndroid Build Coastguard Worker<manifest xmlns:android="http://schemas.android.com/apk/res/android"
26*993b0882SAndroid Build Coastguard Worker          package="com.android.textclassifier"
27*993b0882SAndroid Build Coastguard Worker          android:versionCode="1"
28*993b0882SAndroid Build Coastguard Worker          android:versionName="1.0.0">
29*993b0882SAndroid Build Coastguard Worker
30*993b0882SAndroid Build Coastguard Worker    <uses-sdk android:minSdkVersion="30" android:targetSdkVersion="30"/>
31*993b0882SAndroid Build Coastguard Worker
32*993b0882SAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
33*993b0882SAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
34*993b0882SAndroid Build Coastguard Worker
35*993b0882SAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
36*993b0882SAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
37*993b0882SAndroid Build Coastguard Worker    <!-- The INTERNET permission is restricted to the modelDownloaderServiceProcess -->
38*993b0882SAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.INTERNET"/>
39*993b0882SAndroid Build Coastguard Worker
40*993b0882SAndroid Build Coastguard Worker    <application>
41*993b0882SAndroid Build Coastguard Worker        <processes>
42*993b0882SAndroid Build Coastguard Worker            <deny-permission android:name="android.permission.INTERNET" />
43*993b0882SAndroid Build Coastguard Worker            <process />
44*993b0882SAndroid Build Coastguard Worker            <process android:process=":modelDownloaderServiceProcess">
45*993b0882SAndroid Build Coastguard Worker                <allow-permission android:name="android.permission.INTERNET" />
46*993b0882SAndroid Build Coastguard Worker            </process>
47*993b0882SAndroid Build Coastguard Worker        </processes>
48*993b0882SAndroid Build Coastguard Worker
49*993b0882SAndroid Build Coastguard Worker        <service
50*993b0882SAndroid Build Coastguard Worker            android:exported="false"
51*993b0882SAndroid Build Coastguard Worker            android:name=".downloader.ModelDownloaderService"
52*993b0882SAndroid Build Coastguard Worker            android:process=":modelDownloaderServiceProcess">
53*993b0882SAndroid Build Coastguard Worker        </service>
54*993b0882SAndroid Build Coastguard Worker
55*993b0882SAndroid Build Coastguard Worker        <service
56*993b0882SAndroid Build Coastguard Worker            android:exported="true"
57*993b0882SAndroid Build Coastguard Worker            android:directBootAware="false"
58*993b0882SAndroid Build Coastguard Worker            android:name=".DefaultTextClassifierService"
59*993b0882SAndroid Build Coastguard Worker            android:permission="android.permission.BIND_TEXTCLASSIFIER_SERVICE">
60*993b0882SAndroid Build Coastguard Worker            <intent-filter>
61*993b0882SAndroid Build Coastguard Worker                <action android:name="android.service.textclassifier.TextClassifierService"/>
62*993b0882SAndroid Build Coastguard Worker            </intent-filter>
63*993b0882SAndroid Build Coastguard Worker        </service>
64*993b0882SAndroid Build Coastguard Worker    </application>
65*993b0882SAndroid Build Coastguard Worker
66*993b0882SAndroid Build Coastguard Worker</manifest>
67