blob: 08d696be782363df585ee0546b7ef139bd30f1dc [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="org.calyxos.backup.storage">
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="29" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29" />
<uses-permission
android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />
<!-- Needed to backup original media files e.g. without stripped EXIF metadata -->
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />
<!--
Needed to restore owning app of media files
http://aosp.opersys.com/xref/android-11.0.0_r17/xref/packages/providers/MediaProvider/src/com/android/providers/media/util/PermissionUtils.java#88
-->
<uses-permission
android:name="android.permission.BACKUP"
tools:ignore="ProtectedPermissions" />
<!-- Needed to schedule the periodic backup job -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<!-- Needed to run a periodic backup service that doesn't get killed -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
</manifest>