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 xmlns:tools="http://schemas.android.com/tools"> 19 20 <!-- 21 ~ Adding these permissions to the test-app's AndroidManifest.xml. This is because 22 ~ we don't want applications to implicitly add this permission on API 31 and above. We only 23 ~ need this permission for tests. 24 --> 25 <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" 26 android:maxSdkVersion="32"/> 27 <uses-permission android:name="android.permission.USE_EXACT_ALARM"/> 28 <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE"/> 29 <application> 30 <service android:name="androidx.work.impl.foreground.SystemForegroundService" 31 android:foregroundServiceType="specialUse" /> 32 <service 33 android:name="androidx.work.impl.background.systemjob.WhateverJobService" 34 android:process=".foo" 35 android:permission="android.permission.BIND_JOB_SERVICE" 36 android:exported="true" 37 android:enabled="true" 38 android:directBootAware="false"/> 39 </application> 40</manifest> 41