app/src/main/AndroidManifest.xml (3319 bytes)
1 <?xml version="1.0" encoding="utf-8"?> 2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"> 3 4 <!-- 5 Shell access through Shizuku. The light node belongs to the system, so 6 the app cannot write it by itself. There is no other permission, and no 7 INTERNET permission. 8 --> 9 <uses-permission android:name="moe.shizuku.manager.permission.API_V23" /> 10 11 <!-- 12 Package visibility. Android 11 and later hide other packages, so the 13 app must name Shizuku to see that it is installed. 14 --> 15 <queries> 16 <package android:name="moe.shizuku.privileged.api" /> 17 </queries> 18 19 <application 20 android:allowBackup="true" 21 android:icon="@mipmap/ic_launcher" 22 android:label="@string/app_name" 23 android:supportsRtl="true" 24 android:theme="@style/Theme.App"> 25 26 <!-- 27 The launcher icon. It draws nothing: it does the toggle and goes 28 away. A long press on the icon offers the settings screen. 29 --> 30 <activity 31 android:name=".ToggleActivity" 32 android:exported="true" 33 android:excludeFromRecents="true" 34 android:label="@string/app_name" 35 android:launchMode="singleTask" 36 android:noHistory="true" 37 android:taskAffinity="dev.equwal.inkdim.toggle" 38 android:theme="@style/Theme.Invisible"> 39 <intent-filter> 40 <action android:name="android.intent.action.MAIN" /> 41 <category android:name="android.intent.category.LAUNCHER" /> 42 </intent-filter> 43 <!-- For a key remapper, or any other app that asks for the toggle. --> 44 <intent-filter> 45 <action android:name="dev.equwal.inkdim.TOGGLE" /> 46 <action android:name="dev.equwal.inkdim.ON" /> 47 <action android:name="dev.equwal.inkdim.OFF" /> 48 <category android:name="android.intent.category.DEFAULT" /> 49 </intent-filter> 50 <meta-data 51 android:name="android.app.shortcuts" 52 android:resource="@xml/shortcuts" /> 53 </activity> 54 55 <activity 56 android:name=".SettingsActivity" 57 android:exported="true" 58 android:excludeFromRecents="true" 59 android:label="@string/settings_label" /> 60 61 <!-- A tile in the quick settings panel. It does the same toggle. --> 62 <service 63 android:name=".DimTileService" 64 android:exported="true" 65 android:icon="@drawable/ic_tile" 66 android:label="@string/tile_label" 67 android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> 68 <intent-filter> 69 <action android:name="android.service.quicksettings.action.QS_TILE" /> 70 </intent-filter> 71 </service> 72 73 <!-- Shizuku delivers its binder to the app through this provider. --> 74 <provider 75 android:name="rikka.shizuku.ShizukuProvider" 76 android:authorities="${applicationId}.shizuku" 77 android:enabled="true" 78 android:exported="true" 79 android:multiprocess="false" 80 android:permission="android.permission.INTERACT_ACROSS_USERS_FULL" /> 81 82 </application> 83 84 </manifest>