summaryrefslogtreecommitdiff
path: root/TvSampleLeanbackLauncher/src/main/AndroidManifest.xml
diff options
context:
space:
mode:
Diffstat (limited to 'TvSampleLeanbackLauncher/src/main/AndroidManifest.xml')
-rw-r--r--TvSampleLeanbackLauncher/src/main/AndroidManifest.xml57
1 files changed, 57 insertions, 0 deletions
diff --git a/TvSampleLeanbackLauncher/src/main/AndroidManifest.xml b/TvSampleLeanbackLauncher/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..070967b
--- /dev/null
+++ b/TvSampleLeanbackLauncher/src/main/AndroidManifest.xml
@@ -0,0 +1,57 @@
+<!--
+ ~ Copyright (C) 2023 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License
+ -->
+
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.example.sampleleanbacklauncher">
+
+ <!-- ACCESS_WIFI_STATE and ACCESS_NETWORK_STATE are used for updating the network settings entry icon -->
+ <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
+ <uses-permission android:name="android.permission.ACCESS_NOTIFICATIONS" />
+
+ <uses-feature android:name="android.software.leanback" android:required="true" />
+
+ <application
+ android:allowBackup="true"
+ android:icon="@mipmap/ic_launcher"
+ android:label="@string/app_name"
+ android:supportsRtl="true"
+ android:theme="@style/AppTheme">
+ <activity android:name=".LauncherActivity"
+ android:launchMode="singleTask"
+ android:resumeWhilePausing="true"
+ android:exported="true">
+ <!-- Need to be priority 2 to avoid conflict with SetupWraith (= 3) -->
+ <intent-filter android:priority="2">
+ <action android:name="android.intent.action.MAIN" />
+
+ <category android:name="android.intent.category.HOME" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+
+ </activity>
+ <activity
+ android:name=".notifications.NotificationsSidePanelActivity"
+ android:theme="@style/NotificationsSidePanel"
+ android:exported="true">
+ <intent-filter>
+ <action android:name="com.android.tv.NOTIFICATIONS_PANEL"/>
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ </activity>
+ <service android:name=".apps.LaunchItemsManager" android:exported="false" />
+ </application>
+</manifest>