Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
translate ▾

Modern-Apps.git / keyboard / src / main / AndroidManifest.xml

AndroidManifest.xml77 lines · 3.5 KiBRaw
1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
4 <!-- Dictation (long-press on enter). Requested at that point by VoicePermissionActivity,
5 never at startup: an IME cannot show a runtime permission dialog itself. -->
6 <!-- MAOS: opt out of the GrapheneOS Sensors permission (OTHER_SENSORS). -->
7 <!-- This app uses no motion/environment sensors; MAOS withholds the -->
8 <!-- Sensors permission at install instead of auto-granting it. -->
9 <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" />
10
11 <uses-permission android:name="android.permission.RECORD_AUDIO" />
12 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
13
14 <!-- SpeechRecognizer.isRecognitionAvailable() and the bind behind it both need to see the
15 recognition service, which package visibility hides by default. -->
16 <queries>
17 <intent>
18 <action android:name="android.speech.RecognitionService" />
19 </intent>
20 </queries>
21
22 <application
23 android:allowBackup="true"
24 android:dataExtractionRules="@xml/data_extraction_rules"
25 android:icon="@mipmap/ic_launcher"
26 android:label="@string/app_name"
27 android:roundIcon="@mipmap/ic_launcher"
28 android:supportsRtl="true"
29 android:theme="@style/Theme.General">
30
31 <activity
32 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
33 android:name=".MainActivity"
34 android:exported="true"
35 android:theme="@style/Theme.General">
36 <intent-filter>
37 <action android:name="android.intent.action.MAIN" />
38 <category android:name="android.intent.category.LAUNCHER" />
39 </intent-filter>
40 </activity>
41
42 <!-- Invisible trampoline for the microphone prompt; see VoicePermissionActivity.
43 Deliberately not android:noHistory, which would finish it under the dialog. -->
44 <activity
45 android:name=".platform.VoicePermissionActivity"
46 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
47 android:excludeFromRecents="true"
48 android:exported="false"
49 android:launchMode="singleTop"
50 android:theme="@android:style/Theme.Translucent.NoTitleBar" />
51
52 <service
53 android:name=".platform.ime.KeyboardService"
54 android:label="@string/app_name"
55 android:directBootAware="true"
56 android:permission="android.permission.BIND_INPUT_METHOD"
57 android:exported="true">
58 <intent-filter>
59 <action android:name="android.view.InputMethod" />
60 </intent-filter>
61 <meta-data
62 android:name="android.view.im"
63 android:resource="@xml/method" />
64 </service>
65
66 <provider
67 android:name="androidx.core.content.FileProvider"
68 android:authorities="${applicationId}.fileprovider"
69 android:exported="false"
70 android:grantUriPermissions="true">
71 <meta-data
72 android:name="android.support.FILE_PROVIDER_PATHS"
73 android:resource="@xml/file_paths" />
74 </provider>
75 </application>
76
77</manifest>