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