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