Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / launcher / src / main / AndroidManifest.xml
AndroidManifest.xml92 lines · 4.4 KiBRaw
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | xmlns:tools="http://schemas.android.com/tools"> |
| 4 | |
| 5 | <uses-permission android:name="android.permission.SET_WALLPAPER" /> |
| 6 | <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" |
| 7 | android:maxSdkVersion="32" /> |
| 8 | |
| 9 | <uses-permission android:name="android.permission.DELETE_PACKAGES" |
| 10 | tools:ignore="ProtectedPermissions" /> |
| 11 | <uses-permission android:name="android.permission.MODIFY_QUIET_MODE" |
| 12 | tools:ignore="ProtectedPermissions" /> |
| 13 | <uses-permission android:name="android.permission.EXPAND_STATUS_BAR" /> |
| 14 | <!-- Only for the TV network tile: Wi-Fi, Ethernet or offline, and the Wi-Fi signal. --> |
| 15 | <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
| 16 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
| 17 | <!-- Lets "Uninstall" in the TV edit menu open Android's uninstall prompt. --> |
| 18 | <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" /> |
| 19 | |
| 20 | <queries> |
| 21 | <intent> |
| 22 | <action android:name="android.intent.action.MAIN" /> |
| 23 | <category android:name="android.intent.category.LAUNCHER" /> |
| 24 | </intent> |
| 25 | <intent> |
| 26 | <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> |
| 27 | </intent> |
| 28 | <!-- Android 11+ only shows a home screen the TV apps it asks to see. --> |
| 29 | <intent> |
| 30 | <action android:name="android.intent.action.MAIN" /> |
| 31 | <category android:name="android.intent.category.LEANBACK_LAUNCHER" /> |
| 32 | </intent> |
| 33 | <!-- Settings screens the TV network tile opens. --> |
| 34 | <intent> |
| 35 | <action android:name="android.settings.WIFI_SETTINGS" /> |
| 36 | </intent> |
| 37 | <intent> |
| 38 | <action android:name="android.settings.WIRELESS_SETTINGS" /> |
| 39 | </intent> |
| 40 | <intent> |
| 41 | <action android:name="android.settings.SETTINGS" /> |
| 42 | </intent> |
| 43 | <!-- Google TV's HDMI input player, so TV HDMI tiles open the right surface. --> |
| 44 | <package android:name="com.google.android.tv.inputplayer" /> |
| 45 | </queries> |
| 46 | |
| 47 | <!-- Leanback rows list the app on TV; touch stays available so phones keep it. |
| 48 | required=true on leanback would be wrong here — this APK also serves phones. --> |
| 49 | <uses-feature |
| 50 | android:name="android.software.leanback" |
| 51 | android:required="false" /> |
| 52 | <uses-feature |
| 53 | android:name="android.hardware.touchscreen" |
| 54 | android:required="false" /> |
| 55 | |
| 56 | <application |
| 57 | android:allowBackup="true" |
| 58 | android:banner="@drawable/tv_banner" |
| 59 | android:dataExtractionRules="@xml/data_extraction_rules" |
| 60 | android:icon="@mipmap/ic_launcher" |
| 61 | android:label="@string/app_name" |
| 62 | android:roundIcon="@mipmap/ic_launcher" |
| 63 | android:supportsRtl="true" |
| 64 | android:theme="@style/Theme.Launcher"> |
| 65 | <activity |
| 66 | android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" |
| 67 | android:name=".MainActivity" |
| 68 | android:exported="true" |
| 69 | android:launchMode="singleTask" |
| 70 | android:resizeableActivity="true" |
| 71 | android:stateNotNeeded="true" |
| 72 | android:theme="@style/Theme.Launcher"> |
| 73 | <!-- |
| 74 | One filter carrying every category: separate filters on one activity build |
| 75 | separate resolve entries that confuse launcher resolution (learned merging |
| 76 | tvlauncher in). LEANBACK_LAUNCHER puts the app in TV rows; HOME + DEFAULT |
| 77 | keep it offerable as the default home on both form factors. |
| 78 | --> |
| 79 | <intent-filter> |
| 80 | <action android:name="android.intent.action.MAIN" /> |
| 81 | <category android:name="android.intent.category.LAUNCHER" /> |
| 82 | <category android:name="android.intent.category.LEANBACK_LAUNCHER" /> |
| 83 | <category android:name="android.intent.category.HOME" /> |
| 84 | <category android:name="android.intent.category.DEFAULT" /> |
| 85 | </intent-filter> |
| 86 | <intent-filter> |
| 87 | <action android:name="android.intent.action.APPLICATION_PREFERENCES" /> |
| 88 | <category android:name="android.intent.category.DEFAULT" /> |
| 89 | </intent-filter> |
| 90 | </activity> |
| 91 | </application> |
| 92 | </manifest> |