-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
76 lines (69 loc) · 3.64 KB
/
AndroidManifest.xml
File metadata and controls
76 lines (69 loc) · 3.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="utf-8"?>
<!--
Kern - privacy-first, fully offline document editor.
NOTE: There is deliberately NO android.permission.INTERNET (or any network
permission) declared here. This is a hard architectural constraint, not a
preference. Do not add network permissions without explicit project-level
discussion (see CLAUDE.md "What must never change").
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Storage. Scoped guidance toward Documents + Downloads; see ADR 003. -->
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29" />
<!-- API 33+ granular media access. -->
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<!-- Broad file access, guided toward Documents/Downloads in-app. -->
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Kern">
<activity
android:name="dev.kern.MainActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.Kern">
<!-- Launcher -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- "Open with" - view/edit handlers for every supported format. -->
<intent-filter android:label="@string/app_name">
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="text/csv" />
<data android:mimeType="text/comma-separated-values" />
<data android:mimeType="application/pdf" />
<data android:mimeType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
<data android:mimeType="application/vnd.ms-excel" />
<data android:mimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document" />
<data android:mimeType="application/msword" />
<data android:mimeType="application/vnd.openxmlformats-officedocument.presentationml.presentation" />
<data android:mimeType="application/vnd.ms-powerpoint" />
<data android:mimeType="application/epub+zip" />
</intent-filter>
</activity>
<!-- Shares a read-only copy of a local file with another app ("Share a copy").
Required because file:// URIs cannot be handed to other apps on modern
Android. No network involved; the grant is read-only and per-share. -->
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
</application>
</manifest>