Show heads-up notification when auto-restore fails due to removed storage
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index dc86fdf..e1e882d 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -29,6 +29,10 @@
android:name="android.permission.INSTALL_PACKAGES"
tools:ignore="ProtectedPermissions" />
+ <!-- This is needed when using auto-restore with removable storage
+ to allow the user to uninstall an app when storage was not plugged in during install -->
+ <uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
+
<application
android:name=".App"
android:allowBackup="false"
@@ -87,5 +91,13 @@
android:resource="@xml/device_filter" />
</receiver>
+ <receiver
+ android:name=".restore.RestoreErrorBroadcastReceiver"
+ android:exported="false">
+ <intent-filter>
+ <action android:name="com.stevesoltys.seedvault.action.UNINSTALL" />
+ </intent-filter>
+ </receiver>
+
</application>
</manifest>