blob: ad270b3170f6202b79f0efddb79ce4d3cd485a7b [file] [log] [blame]
Felipe Leme5b351362016-01-27 14:49:54 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2016 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
18<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Felipe Lemea0f49f22016-02-18 10:43:54 -080019 package="com.android.cts.net.hostside.app2" >
Felipe Leme5b351362016-01-27 14:49:54 -080020
Felipe Lemea0f49f22016-02-18 10:43:54 -080021 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Dianne Hackborn568c73d2018-01-19 17:54:16 -080022 <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
Felipe Lemea0f49f22016-02-18 10:43:54 -080023 <uses-permission android:name="android.permission.INTERNET" />
24
25 <!--
26 This application is used to listen to RESTRICT_BACKGROUND_CHANGED intents and store
27 them in a shared preferences which is then read by the test app. These broadcasts are
28 handled by 2 listeners, one defined the manifest and another dynamically registered by
Felipe Leme5b351362016-01-27 14:49:54 -080029 a service.
Felipe Lemea0f49f22016-02-18 10:43:54 -080030
31 The manifest-defined listener also handles ordered broadcasts used to share data with the
32 test app.
Lorenzo Colitticbcfb982016-04-15 16:27:49 +090033
34 This application also provides a service, RemoteSocketFactoryService, that the test app can
35 use to open sockets to remote hosts as a different user ID.
Felipe Leme5b351362016-01-27 14:49:54 -080036 -->
Fyodor Kupolov9636bf42018-03-22 15:19:52 -070037 <application android:usesCleartextTraffic="true">
Felipe Leme6cd41f62016-04-29 16:48:14 -070038 <activity android:name=".MyActivity" android:exported="true"/>
Felipe Lemea0f49f22016-02-18 10:43:54 -080039 <service android:name=".MyService" android:exported="true"/>
Felipe Lemeeb7e5052016-03-29 17:31:25 -070040 <service android:name=".MyForegroundService" android:exported="true"/>
Lorenzo Colitticbcfb982016-04-15 16:27:49 +090041 <service android:name=".RemoteSocketFactoryService" android:exported="true"/>
Felipe Leme5b351362016-01-27 14:49:54 -080042
43 <receiver android:name=".MyBroadcastReceiver" >
44 <intent-filter>
45 <action android:name="android.net.conn.RESTRICT_BACKGROUND_CHANGED" />
Felipe Lemea0f49f22016-02-18 10:43:54 -080046 <action android:name="com.android.cts.net.hostside.app2.action.GET_COUNTERS" />
Felipe Leme6cd41f62016-04-29 16:48:14 -070047 <action android:name="com.android.cts.net.hostside.app2.action.GET_RESTRICT_BACKGROUND_STATUS" />
Felipe Lemea0f49f22016-02-18 10:43:54 -080048 <action android:name="com.android.cts.net.hostside.app2.action.CHECK_NETWORK" />
Felipe Leme4188bc32016-05-23 16:10:07 -070049 <action android:name="com.android.cts.net.hostside.app2.action.SEND_NOTIFICATION" />
Amith Yamasani87c10012016-09-21 11:45:30 -070050 <action android:name="com.android.cts.net.hostside.app2.action.SHOW_TOAST" />
Felipe Leme4188bc32016-05-23 16:10:07 -070051 </intent-filter>
Felipe Leme5b351362016-01-27 14:49:54 -080052 </receiver>
53 </application>
54
Lorenzo Colitticbcfb982016-04-15 16:27:49 +090055</manifest>