app/src/main/AndroidManifest.xml (3201 bytes)
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 <!-- 6 Special access. The user grants it from a settings screen. The app reads 7 the usage log to put the apps in order of last use. It is used only when 8 there is no shell access to ask the system directly. 9 --> 10 <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" 11 tools:ignore="ProtectedPermissions" /> 12 13 <!-- 14 Without shell access, "close" ends the background processes of an app. 15 Android grants this permission at install. 16 --> 17 <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" /> 18 19 <!-- Shell access through Shizuku, if the user has it. --> 20 <uses-permission android:name="moe.shizuku.manager.permission.API_V23" /> 21 22 <!-- 23 Package visibility. The app shows the name and the icon of each app in 24 the list, so it must see the apps that have a launcher icon. 25 --> 26 <queries> 27 <intent> 28 <action android:name="android.intent.action.MAIN" /> 29 <category android:name="android.intent.category.LAUNCHER" /> 30 </intent> 31 </queries> 32 33 <application 34 android:allowBackup="true" 35 android:icon="@mipmap/ic_launcher" 36 android:label="@string/app_name" 37 android:supportsRtl="true" 38 android:theme="@style/Theme.App"> 39 40 <!-- 41 The one screen. It keeps out of its own list, and it starts one task 42 only, so a second start brings the same screen back. 43 --> 44 <activity 45 android:name=".RecentsActivity" 46 android:exported="true" 47 android:excludeFromRecents="true" 48 android:label="@string/app_name" 49 android:launchMode="singleTask" 50 android:taskAffinity="dev.equwal.inkrecents.recents"> 51 <intent-filter> 52 <action android:name="android.intent.action.MAIN" /> 53 <category android:name="android.intent.category.LAUNCHER" /> 54 </intent-filter> 55 <!-- For a key remapper, or any other app that starts this screen. --> 56 <intent-filter> 57 <action android:name="dev.equwal.inkrecents.OPEN" /> 58 <category android:name="android.intent.category.DEFAULT" /> 59 </intent-filter> 60 </activity> 61 62 <activity 63 android:name=".SettingsActivity" 64 android:exported="false" 65 android:excludeFromRecents="true" 66 android:label="@string/settings_label" /> 67 68 <!-- A tile in the quick settings panel that opens the screen. --> 69 <service 70 android:name=".RecentsTileService" 71 android:exported="true" 72 android:icon="@drawable/ic_tile" 73 android:label="@string/tile_label" 74 android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> 75 <intent-filter> 76 <action android:name="android.service.quicksettings.action.QS_TILE" /> 77 </intent-filter> 78 </service> 79 80 </application> 81 82 </manifest>