app/src/main/AndroidManifest.xml (2666 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 <application 12 android:allowBackup="true" 13 android:icon="@mipmap/ic_launcher" 14 android:label="@string/app_name" 15 android:supportsRtl="true" 16 android:theme="@style/Theme.App"> 17 18 <!-- 19 The launcher icon. It draws nothing: it does the toggle and goes 20 away. A long press on the icon offers the settings screen. 21 --> 22 <activity 23 android:name=".ToggleActivity" 24 android:exported="true" 25 android:excludeFromRecents="true" 26 android:label="@string/app_name" 27 android:launchMode="singleTask" 28 android:noHistory="true" 29 android:taskAffinity="dev.equwal.inkdim.toggle" 30 android:theme="@style/Theme.Invisible"> 31 <intent-filter> 32 <action android:name="android.intent.action.MAIN" /> 33 <category android:name="android.intent.category.LAUNCHER" /> 34 </intent-filter> 35 <!-- For a key remapper, or any other app that asks for the toggle. --> 36 <intent-filter> 37 <action android:name="dev.equwal.inkdim.TOGGLE" /> 38 <action android:name="dev.equwal.inkdim.ON" /> 39 <action android:name="dev.equwal.inkdim.OFF" /> 40 <category android:name="android.intent.category.DEFAULT" /> 41 </intent-filter> 42 <meta-data 43 android:name="android.app.shortcuts" 44 android:resource="@xml/shortcuts" /> 45 </activity> 46 47 <activity 48 android:name=".SettingsActivity" 49 android:exported="true" 50 android:excludeFromRecents="true" 51 android:label="@string/settings_label" /> 52 53 <!-- A tile in the quick settings panel. It does the same toggle. --> 54 <service 55 android:name=".DimTileService" 56 android:exported="true" 57 android:icon="@drawable/ic_tile" 58 android:label="@string/tile_label" 59 android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> 60 <intent-filter> 61 <action android:name="android.service.quicksettings.action.QS_TILE" /> 62 </intent-filter> 63 </service> 64 65 </application> 66 67 </manifest>