Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / uniflix / src / main / AndroidManifest.xml

AndroidManifest.xml57 lines · 2.7 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
4 <uses-permission android:name="android.permission.INTERNET" />
5 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
6
7 <!-- Leanback is supported, not required: one APK serves phones and TVs. Without these,
8 a TV launcher never lists the app; with required="true" phones would lose it. -->
9 <uses-feature
10 android:name="android.software.leanback"
11 android:required="false" />
12 <uses-feature
13 android:name="android.hardware.touchscreen"
14 android:required="false" />
15
16 <application
17 android:allowBackup="true"
18 android:banner="@drawable/tv_banner"
19 android:dataExtractionRules="@xml/data_extraction_rules"
20 android:icon="@mipmap/ic_launcher"
21 android:label="@string/app_name"
22 android:roundIcon="@mipmap/ic_launcher"
23 android:supportsRtl="true"
24 android:theme="@style/Theme.General">
25 <activity
26 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
27 android:name=".MainActivity"
28 android:exported="true"
29 android:launchMode="singleTask"
30 android:theme="@style/Theme.General">
31 <intent-filter>
32 <action android:name="android.intent.action.MAIN" />
33 <category android:name="android.intent.category.LAUNCHER" />
34 </intent-filter>
35 </activity>
36
37 <!--
38 TV entry: a separate activity carrying only LEANBACK_LAUNCHER, so the TV row
39 opens the D-pad UI instead of the phone pager. Separate activity (not a second
40 filter on MainActivity): split filters on one activity build separate resolve
41 entries that confuse launcher resolution.
42 -->
43 <activity
44 android:name=".ui.tv.TvMainActivity"
45 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
46 android:exported="true"
47 android:launchMode="singleTask"
48 android:screenOrientation="landscape"
49 android:theme="@style/Theme.General">
50 <intent-filter>
51 <action android:name="android.intent.action.MAIN" />
52 <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
53 </intent-filter>
54 </activity>
55 </application>
56
57</manifest>