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

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

AndroidManifest.xml68 lines · 3.3 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 <!-- MAOS: opt out of the GrapheneOS Sensors permission (OTHER_SENSORS). -->
6 <!-- This app uses no motion/environment sensors; MAOS withholds the -->
7 <!-- Sensors permission at install instead of auto-granting it. -->
8 <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" />
9
10 <uses-permission
11 android:name="android.permission.BACKUP"
12 tools:ignore="ProtectedPermissions" />
13 <uses-permission
14 android:name="android.permission.WRITE_SECURE_SETTINGS"
15 tools:ignore="ProtectedPermissions" />
16 <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
17 <uses-permission android:name="android.permission.INTERNET" />
18 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
19 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
20 tools:ignore="QueryAllPackagesPermission" />
21 <uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
22 <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
23 <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
24 <uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
25
26 <!--
27 Guards the settings UI so only the system can open it. Backup has no launcher icon -
28 it is reached from Settings > System > Backup, which starts it via the transport's
29 dataManagementIntent - and an exported activity with no guard would let any installed
30 app open the backup configuration.
31 -->
32 <permission
33 android:name="com.vayunmathur.backup.OPEN_SETTINGS"
34 android:protectionLevel="signature" />
35
36 <application
37 android:allowBackup="true"
38 android:dataExtractionRules="@xml/data_extraction_rules"
39 android:icon="@mipmap/ic_launcher"
40 android:label="@string/app_name"
41 android:roundIcon="@mipmap/ic_launcher"
42 android:supportsRtl="true"
43 android:theme="@style/Theme.General">
44 <!--
45 No MAIN/LAUNCHER filter: backup is configured from Settings, not from a home-screen
46 icon, the same way Seedvault is on GrapheneOS. The framework reaches this activity
47 through ConfigurableBackupTransport.dataManagementIntent(), and Settings' backup page
48 renders it under the label the transport supplies.
49 -->
50 <activity
51 android:configChanges="mcc|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|keyboardHidden|layoutDirection|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
52 android:name=".MainActivity"
53 android:exported="true"
54 android:launchMode="singleTask"
55 android:permission="com.vayunmathur.backup.OPEN_SETTINGS"
56 android:theme="@style/Theme.General" />
57
58 <service
59 android:name=".service.ConfigurableBackupTransportService"
60 android:exported="true"
61 android:permission="android.permission.BIND_BACKUP_TRANSPORT">
62 <intent-filter>
63 <action android:name="android.backup.TRANSPORT_HOST" />
64 </intent-filter>
65 </service>
66 </application>
67
68</manifest>