• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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"
19    package="com.example.android.pushapiauthenticator">
20    <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
21    <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
22    <!-- Uses API introduced in O (26) -->
23    <uses-sdk android:minSdkVersion="1"
24          android:targetSdkVersion="26"/>
25    <application android:label="Auth Tester" android:icon="@drawable/push">
26        <activity android:name="MainActivity">
27            <intent-filter>
28                <action android:name="android.intent.action.MAIN"/>
29                <category android:name="android.intent.category.LAUNCHER"/>
30            </intent-filter>
31        </activity>
32        <receiver android:name="com.example.android.pushapiauthenticator.MessageReceiver">
33            <intent-filter>
34                <action android:name="android.accounts.action.ACCOUNTS_LISTENER_PACKAGE_INSTALLED"/>
35            </intent-filter>
36        </receiver>
37
38        <service
39            android:name=".MyAccountAuthenticatorService"
40            android:exported="true">
41            <intent-filter>
42                <action
43                    android:name="android.accounts.AccountAuthenticator"  />
44            </intent-filter>
45            <meta-data
46                android:name="android.accounts.AccountAuthenticator"
47                android:resource="@xml/authenticator" />
48        </service>
49    </application>
50</manifest>
51