1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2023 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 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 package="com.google.snippet.wifi.direct"> 21 <!-- Declare the minimum Android SDK version and internet permission, 22 which are required by Mobly Snippet Lib since it uses network socket. --> 23 <uses-sdk android:minSdkVersion="30" /> 24 <uses-permission android:name="android.permission.INTERNET" /> 25 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 26 <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> 27 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 28 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 29 <uses-permission android:name="android.permission.NEARBY_WIFI_DEVICES" 30 android:usesPermissionFlags="neverForLocation" /> 31 <application> 32 <!-- Add any classes that implement the Snippet interface as meta-data, whose 33 value is a comma-separated string, each section being the package path 34 of a snippet class --> 35 <meta-data 36 android:name="mobly-snippets" 37 android:value="com.google.snippet.wifi.direct.WifiDirectSnippet" /> 38 </application> 39 <!-- Add an instrumentation tag so that the app can be launched through an 40 instrument command. The runner `com.google.android.mobly.snippet.SnippetRunner` 41 is derived from `AndroidJUnitRunner`, and is required to use the 42 Mobly Snippet Lib. --> 43 <instrumentation 44 android:name="com.google.android.mobly.snippet.SnippetRunner" 45 android:targetPackage="com.google.snippet.wifi.direct" /> 46</manifest> 47