• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  ~ Copyright (C) 2023 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    package="com.example.sampleleanbacklauncher">
19
20    <!-- ACCESS_WIFI_STATE and ACCESS_NETWORK_STATE are used for updating the network settings entry icon -->
21    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
22    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
23    <uses-permission android:name="android.permission.ACCESS_NOTIFICATIONS" />
24
25    <uses-feature android:name="android.software.leanback" android:required="true" />
26
27    <application
28        android:allowBackup="true"
29        android:icon="@mipmap/ic_launcher"
30        android:label="@string/app_name"
31        android:supportsRtl="true"
32        android:theme="@style/AppTheme">
33        <activity android:name=".LauncherActivity"
34            android:launchMode="singleTask"
35            android:resumeWhilePausing="true"
36            android:exported="true">
37            <!-- Need to be priority 2 to avoid conflict with SetupWraith (= 3) -->
38            <intent-filter android:priority="2">
39                <action android:name="android.intent.action.MAIN" />
40
41                <category android:name="android.intent.category.HOME" />
42                <category android:name="android.intent.category.DEFAULT" />
43            </intent-filter>
44
45        </activity>
46        <activity
47            android:name=".notifications.NotificationsSidePanelActivity"
48            android:theme="@style/NotificationsSidePanel"
49            android:exported="true">
50            <intent-filter>
51                <action android:name="com.android.tv.NOTIFICATIONS_PANEL"/>
52                <category android:name="android.intent.category.DEFAULT" />
53            </intent-filter>
54        </activity>
55        <service android:name=".apps.LaunchItemsManager" android:exported="false" />
56    </application>
57</manifest>
58