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

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

AndroidManifest.xml104 lines · 4.7 KiBRaw
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 <!-- No network, deliberately: local notes only. :library:image merges in
6 INTERNET (its HttpFetcher) and ACCESS_NETWORK_STATE, neither
7 of which this app uses, so both are stripped here like music/ does. -->
8 <uses-permission android:name="android.permission.INTERNET" tools:node="remove" />
9 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" tools:node="remove" />
10
11 <permission
12 android:name="com.vayunmathur.notes.permissions.ACCESS_NOTES"
13 android:protectionLevel="signature" />
14
15 <!-- Relay IPC for the everysync app's NoteSink. Signature-level: only apps signed
16 with the Modern Apps key can hold it, and the provider additionally narrows the
17 caller to com.vayunmathur.everysync at runtime. -->
18 <permission
19 android:name="com.vayunmathur.notes.permission.RELAY"
20 android:protectionLevel="signature" />
21
22 <application
23 android:allowBackup="true"
24 android:backupAgent=".util.AppBackupAgent"
25 android:dataExtractionRules="@xml/data_extraction_rules"
26 android:icon="@mipmap/ic_launcher"
27 android:label="@string/app_name"
28 android:roundIcon="@mipmap/ic_launcher"
29 android:supportsRtl="true"
30 android:theme="@style/Theme.General">
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
41 <intent-filter>
42 <action android:name="android.intent.action.VIEW" />
43 <action android:name="android.intent.action.EDIT" />
44 <category android:name="android.intent.category.DEFAULT" />
45 <category android:name="android.intent.category.BROWSABLE" />
46 <data android:mimeType="text/markdown" />
47 <data android:mimeType="text/x-markdown" />
48 </intent-filter>
49
50 <intent-filter>
51 <action android:name="android.intent.action.SEND" />
52 <category android:name="android.intent.category.DEFAULT" />
53 <data android:mimeType="text/markdown" />
54 <data android:mimeType="text/x-markdown" />
55 </intent-filter>
56
57 <intent-filter>
58 <action android:name="android.intent.action.VIEW" />
59 <category android:name="android.intent.category.DEFAULT" />
60 <category android:name="android.intent.category.BROWSABLE" />
61 <data android:scheme="content" />
62 <data android:scheme="file" />
63 <data android:host="*" />
64 <data android:mimeType="application/octet-stream" />
65 <data android:pathSuffix=".md" />
66 <data android:pathSuffix=".markdown" />
67 <data android:pathPattern=".*\\.md" />
68 <data android:pathPattern=".*\\.markdown" />
69 </intent-filter>
70 </activity>
71
72 <activity
73 android:name=".intents.GetIntent"
74 android:exported="true"
75 android:theme="@android:style/Theme.NoDisplay"
76 android:permission="com.vayunmathur.notes.permissions.ACCESS_NOTES">
77 </activity>
78
79 <activity
80 android:name=".intents.InsertIntent"
81 android:exported="true"
82 android:theme="@android:style/Theme.NoDisplay"
83 android:permission="com.vayunmathur.notes.permissions.ACCESS_NOTES">
84 </activity>
85
86 <provider
87 android:name="androidx.core.content.FileProvider"
88 android:authorities="com.vayunmathur.notes.fileprovider"
89 android:exported="false"
90 android:grantUriPermissions="true">
91 <meta-data
92 android:name="android.support.FILE_PROVIDER_PATHS"
93 android:resource="@xml/file_paths" />
94 </provider>
95
96 <provider
97 android:name=".sync.RelayNoteProvider"
98 android:authorities="com.vayunmathur.notes.relay"
99 android:exported="true"
100 android:readPermission="com.vayunmathur.notes.permission.RELAY"
101 android:writePermission="com.vayunmathur.notes.permission.RELAY" />
102 </application>
103
104</manifest>