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

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

AndroidManifest.xml71 lines · 3.1 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 <uses-permission android:name="android.permission.RECORD_AUDIO" />
7
8 <!-- SpeechRecognizer.isRecognitionAvailable() and the bind behind it both need to see the
9 recognition service, which package visibility hides by default. -->
10 <queries>
11 <intent>
12 <action android:name="android.speech.RecognitionService" />
13 </intent>
14 </queries>
15
16 <application
17 android:allowBackup="true"
18 android:dataExtractionRules="@xml/data_extraction_rules"
19 android:icon="@mipmap/ic_launcher"
20 android:label="@string/app_name"
21 android:roundIcon="@mipmap/ic_launcher"
22 android:supportsRtl="true"
23 android:theme="@style/Theme.General">
24
25 <activity
26 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
27 android:name=".MainActivity"
28 android:exported="true"
29 android:theme="@style/Theme.General">
30 <intent-filter>
31 <action android:name="android.intent.action.MAIN" />
32 <category android:name="android.intent.category.LAUNCHER" />
33 </intent-filter>
34 </activity>
35
36 <!-- Invisible trampoline for the microphone prompt; see VoicePermissionActivity.
37 Deliberately not android:noHistory, which would finish it under the dialog. -->
38 <activity
39 android:name=".platform.VoicePermissionActivity"
40 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
41 android:excludeFromRecents="true"
42 android:exported="false"
43 android:launchMode="singleTop"
44 android:theme="@android:style/Theme.Translucent.NoTitleBar" />
45
46 <service
47 android:name=".ime.KeyboardService"
48 android:label="@string/app_name"
49 android:directBootAware="true"
50 android:permission="android.permission.BIND_INPUT_METHOD"
51 android:exported="true">
52 <intent-filter>
53 <action android:name="android.view.InputMethod" />
54 </intent-filter>
55 <meta-data
56 android:name="android.view.im"
57 android:resource="@xml/method" />
58 </service>
59
60 <provider
61 android:name="androidx.core.content.FileProvider"
62 android:authorities="${applicationId}.fileprovider"
63 android:exported="false"
64 android:grantUriPermissions="true">
65 <meta-data
66 android:name="android.support.FILE_PROVIDER_PATHS"
67 android:resource="@xml/file_paths" />
68 </provider>
69 </application>
70
71</manifest>